BE-SPAN/node_modules/yallist/iterator.js
githubna-ilham 722cd440e8 first commit
2024-10-20 22:04:16 +07: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
}
}
}