odin-javascript-exercises/node_modules/yallist/iterator.js
2017-12-15 12:56:14 -06:00

7 lines
183 B
JavaScript

var Yallist = require('./yallist.js')
Yallist.prototype[Symbol.iterator] = function* () {
for (let walker = this.head; walker; walker = walker.next) {
yield walker.value
}
}