Sha256: 205f51f196230659c6fd0019f90f58b6faee8d0f5a24900c83a2d834bd26d576

Contents?: true

Size: 749 Bytes

Versions: 66

Compression:

Stored size: 749 Bytes

Contents

'use strict';
// 26.1.5 Reflect.enumerate(target)
var $export = require('./_export');
var anObject = require('./_an-object');
var Enumerate = function (iterated) {
  this._t = anObject(iterated); // target
  this._i = 0;                  // next index
  var keys = this._k = [];      // keys
  var key;
  for (key in iterated) keys.push(key);
};
require('./_iter-create')(Enumerate, 'Object', function () {
  var that = this;
  var keys = that._k;
  var key;
  do {
    if (that._i >= keys.length) return { value: undefined, done: true };
  } while (!((key = keys[that._i++]) in that._t));
  return { value: key, done: false };
});

$export($export.S, 'Reflect', {
  enumerate: function enumerate(target) {
    return new Enumerate(target);
  }
});

Version data entries

66 entries across 30 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.52 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/es6.reflect.enumerate.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/es6.reflect.enumerate.js