iterator.js 183 B

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