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

Function arrayIterator

test/fixtures/snapshot/typescript.js:1247–1258  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

1245 }
1246 ts.sort = sort;
1247 function arrayIterator(array) {
1248 var i = 0;
1249 return { next: function () {
1250 if (i === array.length) {
1251 return { value: undefined, done: true };
1252 }
1253 else {
1254 i++;
1255 return { value: array[i - 1], done: false };
1256 }
1257 } };
1258 }
1259 ts.arrayIterator = arrayIterator;
1260 function arrayReverseIterator(array) {
1261 var i = array.length;

Callers 2

getIteratorFunction · 0.85
getElementIteratorFunction · 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…