feat(packages/stdlib): add timestamp and noop utils
This commit is contained in:
@@ -5,3 +5,4 @@ export * from './bits';
|
|||||||
export * from './structs';
|
export * from './structs';
|
||||||
export * from './arrays';
|
export * from './arrays';
|
||||||
export * from './types';
|
export * from './types';
|
||||||
|
export * from './utils'
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
/**
|
||||||
|
* Returns the current timestamp
|
||||||
|
*
|
||||||
|
* @returns {number} The current timestamp
|
||||||
|
*/
|
||||||
|
export const timestamp = () => Date.now();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No operation function
|
||||||
|
*
|
||||||
|
* @returns {void} Nothing
|
||||||
|
*/
|
||||||
|
export const noop = () => {};
|
||||||
Reference in New Issue
Block a user