7 lines
294 B
JavaScript
7 lines
294 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;
|
|
}; |