feat(packages/stdlib): add timestamp and noop utils
This commit is contained in:
@@ -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