diff options
Diffstat (limited to 'node_modules/yallist/iterator.js')
-rw-r--r-- | node_modules/yallist/iterator.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/yallist/iterator.js b/node_modules/yallist/iterator.js new file mode 100644 index 0000000..4a15bf2 --- /dev/null +++ b/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 + } +} |