Node-Red configuration
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.

is-symbol.js 507B

1234567891011121314
  1. 'use strict';
  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. var $Object = Object;
  7. module.exports = USE_SYMBOL_AS_UID ? function (it) {
  8. return typeof it == 'symbol';
  9. } : function (it) {
  10. var $Symbol = getBuiltIn('Symbol');
  11. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  12. };