massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / is-symbol.js
1 var global = require('../internals/global');
2 var getBuiltIn = require('../internals/get-built-in');
3 var isCallable = require('../internals/is-callable');
4 var isPrototypeOf = require('../internals/object-is-prototype-of');
5 var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
6
7 var Object = global.Object;
8
9 module.exports = USE_SYMBOL_AS_UID ? function (it) {
10   return typeof it == 'symbol';
11 } : function (it) {
12   var $Symbol = getBuiltIn('Symbol');
13   return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));
14 };