summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/pacote/node_modules/yallist/iterator.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/pacote/node_modules/yallist/iterator.js')
-rw-r--r--deps/npm/node_modules/pacote/node_modules/yallist/iterator.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/npm/node_modules/pacote/node_modules/yallist/iterator.js b/deps/npm/node_modules/pacote/node_modules/yallist/iterator.js
new file mode 100644
index 0000000000..d41c97a19f
--- /dev/null
+++ b/deps/npm/node_modules/pacote/node_modules/yallist/iterator.js
@@ -0,0 +1,8 @@
+'use strict'
+module.exports = function (Yallist) {
+ Yallist.prototype[Symbol.iterator] = function* () {
+ for (let walker = this.head; walker; walker = walker.next) {
+ yield walker.value
+ }
+ }
+}