MCPcopy
hub / github.com/webpack/webpack / [Symbol.iterator]

Method [Symbol.iterator]

lib/util/ArrayQueue.js:90–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 [Symbol.iterator]() {
91 return {
92 next: () => {
93 const item = this.dequeue();
94 if (item) {
95 return {
96 done: false,
97 value: item
98 };
99 }
100 return {
101 done: true,
102 value: undefined
103 };
104 }
105 };
106 }
107}
108
109module.exports = ArrayQueue;

Callers

nothing calls this directly

Calls 1

dequeueMethod · 0.95

Tested by

no test coverage detected