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.
13 lines
493 B
13 lines
493 B
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)); |
|
};
|
|
|