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

Function range

test/parallel/test-timers-args.js:5–7  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

3const assert = require('assert');
4
5function range(n) {
6 return 'x'.repeat(n + 1).split('').map(function(_, i) { return i; });
7}
8
9function timeout(nargs) {
10 const args = range(nargs);

Callers 15

timeoutFunction · 0.70
intervalFunction · 0.70
RunMethod · 0.50
RunSingleMethod · 0.50
ContainsMethod · 0.50
AddTestsToListMethod · 0.50
ContainsMethod · 0.50
MainFunction · 0.50
CheckForCopyrightFunction · 0.50
CheckForHeaderGuardFunction · 0.50

Calls 2

mapMethod · 0.65
splitMethod · 0.45

Tested by 8

RunMethod · 0.40
RunSingleMethod · 0.40
ContainsMethod · 0.40
AddTestsToListMethod · 0.40
ContainsMethod · 0.40
MainFunction · 0.40
IsFailureOutputMethod · 0.40
IsFailureOutputMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…