1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

feat(packages/stdlib): add timestamp and noop utils

This commit is contained in:
2024-10-05 05:43:13 +07:00
parent 8822325299
commit 00fd5846aa
2 changed files with 14 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ export * from './bits';
export * from './structs';
export * from './arrays';
export * from './types';
export * from './utils'

View File

@@ -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 = () => {};