Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
3
const
assert = require(
'assert'
);
4
5
function
range(n) {
6
return
'x'
.repeat(n + 1).split(
''
).map(
function
(_, i) {
return
i; });
7
}
8
9
function
timeout(nargs) {
10
const
args = range(nargs);
Callers
15
timeout
Function · 0.70
interval
Function · 0.70
Run
Method · 0.50
RunSingle
Method · 0.50
Contains
Method · 0.50
AddTestsToList
Method · 0.50
Contains
Method · 0.50
Main
Function · 0.50
RemoveMultiLineCommentsFromRange
Function · 0.50
FindEndOfExpressionInLine
Function · 0.50
CheckForCopyright
Function · 0.50
CheckForHeaderGuard
Function · 0.50
Calls
2
map
Method · 0.65
split
Method · 0.45
Tested by
8
Run
Method · 0.40
RunSingle
Method · 0.40
Contains
Method · 0.40
AddTestsToList
Method · 0.40
Contains
Method · 0.40
Main
Function · 0.40
IsFailureOutput
Method · 0.40
IsFailureOutput
Method · 0.40
Used in the wild
real call sites across dependent graphs
searching dependent graphs…