summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cacache/node_modules/lru-cache/node_modules/yallist/iterator.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/cacache/node_modules/lru-cache/node_modules/yallist/iterator.js')
-rw-r--r--deps/npm/node_modules/cacache/node_modules/lru-cache/node_modules/yallist/iterator.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/npm/node_modules/cacache/node_modules/lru-cache/node_modules/yallist/iterator.js b/deps/npm/node_modules/cacache/node_modules/lru-cache/node_modules/yallist/iterator.js
new file mode 100644
index 0000000000..4a15bf22c4
--- /dev/null
+++ b/deps/npm/node_modules/cacache/node_modules/lru-cache/node_modules/yallist/iterator.js
@@ -0,0 +1,7 @@
+var Yallist = require('./yallist.js')
+
+Yallist.prototype[Symbol.iterator] = function* () {
+ for (let walker = this.head; walker; walker = walker.next) {
+ yield walker.value
+ }
+}