* Adds timestamp to console arguments * @param {...*} args - Console arguments to timestamp * @returns {Array} Arguments array with timestamp prepended
(...args)
| 309 | * @returns {Array} Arguments array with timestamp prepended |
| 310 | */ |
| 311 | function toStringWithTimeStamp(...args) { |
| 312 | const time = `${getTimeSinceEpoc()}s`; |
| 313 | return [time, ...args]; // Return array with time prepended, don't join |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * Custom console.log implementation with timestamps |
no test coverage detected