MIF_E31222707/node_modules/collect.js/dist/methods/symbol.iterator.js

16 lines
270 B
JavaScript

'use strict';
module.exports = function SymbolIterator() {
var _this = this;
var index = -1;
return {
next: function next() {
index += 1;
return {
value: _this.items[index],
done: index >= _this.items.length
};
}
};
};