Files
safari-hunt/node_modules/core-js/modules/_add-to-unscopables.js
Vahagn Khachatryan 4fa4328740 Configring node js.
2018-12-07 15:58:35 +00:00

7 lines
292 B
JavaScript

// 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;
};