Sha256: 37e8bdb27144cd280671a565720bf55430cbfbbef3bac95906f4d485275636c2

Contents?: true

Size: 742 Bytes

Versions: 62

Compression:

Stored size: 742 Bytes

Contents

/* */ 
'use strict';
var setUnscope = require('./$.unscope'),
    step = require('./$.iter-step'),
    Iterators = require('./$.iterators'),
    toIObject = require('./$.to-iobject');
require('./$.iter-define')(Array, 'Array', function(iterated, kind) {
  this._t = toIObject(iterated);
  this._i = 0;
  this._k = kind;
}, function() {
  var O = this._t,
      kind = this._k,
      index = this._i++;
  if (!O || index >= O.length) {
    this._t = undefined;
    return step(1);
  }
  if (kind == 'keys')
    return step(0, index);
  if (kind == 'values')
    return step(0, O[index]);
  return step(0, [index, O[index]]);
}, 'values');
Iterators.Arguments = Iterators.Array;
setUnscope('keys');
setUnscope('values');
setUnscope('entries');

Version data entries

62 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-3.1.3 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-3.1.2 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-3.1.2 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-3.1.1 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-3.1.1 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-3.1.0 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-3.1.0 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-3.0.1 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-3.0.1 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-3.0 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-3.0 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-2.2.0 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-2.2.0 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-2.1.0 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-2.1.0 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-2.0.0 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-2.0.0 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js
sequenceserver-2.0.0.rc8 public/vendor/npm/core-js@1.1.2/library/modules/es6.array.iterator.js
sequenceserver-2.0.0.rc8 public/vendor/npm/core-js@1.1.2/modules/es6.array.iterator.js