Skip to main content

getUniqTime

A function that returns the value new Date().getTime() by default, but returns a unique value if called multiple times at the same time.


Interface

const getUniqTime: () => number

Usage

import { getUniqTime } from '@devgrace/utils';

const uniqTime = getUniqTime();