You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xxdj1/node_modules/core-js/internals/set-method-accept-set-like.js

27 lines
484 B

var getBuiltIn = require('../internals/get-built-in');
var createEmptySetLike = function () {
return {
size: 0,
has: function () {
return false;
},
keys: function () {
return {
next: function () {
return { done: true };
}
};
}
};
};
module.exports = function (name) {
try {
var Set = getBuiltIn('Set');
new Set()[name](createEmptySetLike());
return true;
} catch (error) {
return false;
}
};