diff options
Diffstat (limited to 'node_modules/core-js/modules/$.add-to-unscopables.js')
-rw-r--r-- | node_modules/core-js/modules/$.add-to-unscopables.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/$.add-to-unscopables.js b/node_modules/core-js/modules/$.add-to-unscopables.js new file mode 100644 index 000000000..bffd16137 --- /dev/null +++ b/node_modules/core-js/modules/$.add-to-unscopables.js @@ -0,0 +1,7 @@ +// 22.1.3.31 Array.prototype[@@unscopables] +var UNSCOPABLES = require('./$.wks')('unscopables') + , ArrayProto = Array.prototype; +if(ArrayProto[UNSCOPABLES] == undefined)require('./$.hide')(ArrayProto, UNSCOPABLES, {}); +module.exports = function(key){ + ArrayProto[UNSCOPABLES][key] = true; +};
\ No newline at end of file |