mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
refactor: change separate tools by category
This commit is contained in:
21
core/stdlib/src/utils/index.ts
Normal file
21
core/stdlib/src/utils/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @name timestamp
|
||||
* @category Utils
|
||||
* @description Returns the current timestamp
|
||||
*
|
||||
* @returns {number} The current timestamp
|
||||
*
|
||||
* @since 0.0.2
|
||||
*/
|
||||
export const timestamp = () => Date.now();
|
||||
|
||||
/**
|
||||
* @name noop
|
||||
* @category Utils
|
||||
* @description A function that does nothing
|
||||
*
|
||||
* @returns {void} Nothing
|
||||
*
|
||||
* @since 0.0.2
|
||||
*/
|
||||
export const noop = () => {};
|
||||
Reference in New Issue
Block a user