Current File : /home/tradevaly/www/node_modules/collect.js/src/methods/symbol.iterator.js
'use strict';

module.exports = function SymbolIterator() {
  let index = -1;

  return {
    next: () => {
      index += 1;

      return {
        value: this.items[index],
        done: index >= this.items.length,
      };
    },
  };
};