eslintwork/node_modules/yallist/iterator.js
Martin Donnelly 9cbf1eea5b init
2021-06-24 09:26:17 +01:00

9 lines
207 B
JavaScript

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