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

Function toOffset

test/fixtures/snapshot/typescript.js:1192–1194  ·  view source on GitHub ↗

* Gets the actual offset into an array for a relative offset. Negative offsets indicate a * position offset from the end of the array.

(array, offset)

Source from the content-addressed store, hash-verified

1190 * position offset from the end of the array.
1191 */
1192 function toOffset(array, offset) {
1193 return offset < 0 ? array.length + offset : offset;
1194 }
1195 function addRange(to, from, start, end) {
1196 if (from === undefined || from.length === 0)
1197 return to;

Callers 2

addRangeFunction · 0.85
elementAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…