GoScrobble/web/node_modules/core-js-pure/internals/is-symbol.js

10 lines
341 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
var getBuiltIn = require('../internals/get-built-in');
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
module.exports = USE_SYMBOL_AS_UID ? function (it) {
return typeof it == 'symbol';
} : function (it) {
var $Symbol = getBuiltIn('Symbol');
return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
};