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

Function last

deps/npm/test/lib/utils/log-file.js:14–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
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()

Callers 1

log-file.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected