You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
272 B

4 years ago
'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
};
}
};
};