MCPcopy Create free account
hub / github.com/nodejs/node / range

Function range

deps/npm/test/lib/utils/log-file.js:15–15  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

13const getId = (d = new Date()) => d.toISOString().replace(/[.:]/g, '_')
14const last = arr => arr[arr.length - 1]
15const range = (n) => Array.from(Array(n).keys())
16const makeOldLogs = (count, oldStyle) => {
17 const d = new Date()
18 d.setHours(-1)

Callers 3

makeOldLogsFunction · 0.70
cleanErrFunction · 0.70
log-file.jsFile · 0.70

Calls 3

ArrayFunction · 0.85
keysMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected