add jsdoc

This commit is contained in:
2026-04-17 15:36:11 +02:00
parent 8d1a6ba740
commit 46c34ba545
3 changed files with 32 additions and 3 deletions
+5
View File
@@ -1,3 +1,8 @@
/**
* A simple logging utility that prefixes log messages with a timestamp and a tag.
*
* @param {...any} args - The arguments to log, which can be of any type.
*/
export const log = (...args) => {
const timestamp = new Date().toISOString();
console.log(`[holybar] [${timestamp}]`, ...args);