aboutsummaryrefslogtreecommitdiff
path: root/node_modules/yallist/iterator.js
blob: 4a15bf22c400326fc31f68eb3c0dde4714e6af0c (plain)
1
2
3
4
5
6
7
var Yallist = require('./yallist.js')

Yallist.prototype[Symbol.iterator] = function* () {
  for (let walker = this.head; walker; walker = walker.next) {
    yield walker.value
  }
}