mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-09 20:40:03 +08:00
15 lines
543 B
JavaScript
15 lines
543 B
JavaScript
|
|
var global = require('../internals/global');
|
||
|
|
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 = global.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));
|
||
|
|
};
|