Sha256: f8790725f20153d4e4255a535fa76635a93161693d5a478b570c8805492b1f6e

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 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.github.io/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

6 entries across 6 versions & 3 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/core-js/internals/add-to-unscopables.js
tang-0.2.1 spec/tang_app/node_modules/core-js/internals/add-to-unscopables.js
tang-0.2.0 spec/tang_app/node_modules/core-js/internals/add-to-unscopables.js
tang-0.1.0 spec/tang_app/node_modules/core-js/internals/add-to-unscopables.js
tang-0.0.9 spec/tang_app/node_modules/core-js/internals/add-to-unscopables.js
enju_library-0.3.8 spec/dummy/node_modules/core-js/internals/add-to-unscopables.js