first
This commit is contained in:
14
node_modules/core-js/internals/is-symbol.js
generated
vendored
Normal file
14
node_modules/core-js/internals/is-symbol.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
var getBuiltIn = require('../internals/get-built-in');
|
||||
var isCallable = require('../internals/is-callable');
|
||||
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
||||
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
||||
|
||||
var $Object = Object;
|
||||
|
||||
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
||||
return typeof it == 'symbol';
|
||||
} : function (it) {
|
||||
var $Symbol = getBuiltIn('Symbol');
|
||||
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
||||
};
|
Reference in New Issue
Block a user