Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/feross/spoof
/ chunk
Function
chunk
index.js:479–485 ·
view source on GitHub ↗
(str, n)
Source
from the content-addressed store, hash-verified
477
}
478
479
function
chunk (str, n) {
480
const
arr = []
481
for
(
let
i = 0; i < str.length; i += n) {
482
arr.push(str.slice(i, i + n))
483
}
484
return
arr
485
}
486
487
/**
488
* Return a random integer between min and max (inclusive).
Callers
1
normalize
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected