MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / iteratorFor

Function iteratorFor

packages/core/fetch/index.mjs:65–80  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

63
64 // Build a destructive iterator for the value list
65 function iteratorFor(items) {
66 var iterator = {
67 next: function () {
68 var value = items.shift();
69 return { done: value === undefined, value: value };
70 }
71 };
72
73 if (support.iterable) {
74 iterator[Symbol.iterator] = function () {
75 return iterator;
76 };
77 }
78
79 return iterator;
80 }
81
82 function Headers(headers) {
83 this.map = {};

Callers 1

index.mjsFile · 0.85

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected