Sha256: 8f66046f6675234e889c68849feba58365461a5fd825e82ecf59bfbf725bc980

Contents?: true

Size: 666 Bytes

Versions: 11

Compression:

Stored size: 666 Bytes

Contents

var wellKnownSymbol = require('../internals/well-known-symbol');
var create = require('../internals/object-create');
var definePropertyModule = require('../internals/object-define-property');

var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;

// Array.prototype[@@unscopables]
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] == undefined) {
  definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
    configurable: true,
    value: create(null)
  });
}

// add a key to Array.prototype[@@unscopables]
module.exports = function (key) {
  ArrayPrototype[UNSCOPABLES][key] = true;
};

Version data entries

11 entries across 10 versions & 3 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
disco_app-0.15.2 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
disco_app-0.18.4 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
disco_app-0.18.1 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
disco_app-0.14.0 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/core-js/internals/add-to-unscopables.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/core-js/internals/add-to-unscopables.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/core-js/internals/add-to-unscopables.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/core-js/internals/add-to-unscopables.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/core-js/internals/add-to-unscopables.js