MCPcopy Index your code
hub / github.com/nodejs/node / arrayOfNumbers

Function arrayOfNumbers

test/parallel/test-buffer-generic-methods.js:5–7  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

3const assert = require('assert');
4
5function arrayOfNumbers(length) {
6 return Array.from({ length }, (_, i) => i);
7}
8
9const customInspectSymbol = Symbol.for('nodejs.util.inspect.custom');
10

Callers 1

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected