source: frontend/node_modules/has-symbols/index.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 447 bytes
Line 
1'use strict';
2
3var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4var hasSymbolSham = require('./shams');
5
6/** @type {import('.')} */
7module.exports = function hasNativeSymbols() {
8 if (typeof origSymbol !== 'function') { return false; }
9 if (typeof Symbol !== 'function') { return false; }
10 if (typeof origSymbol('foo') !== 'symbol') { return false; }
11 if (typeof Symbol('bar') !== 'symbol') { return false; }
12
13 return hasSymbolSham();
14};
Note: See TracBrowser for help on using the repository browser.