source: imaps-frontend/node_modules/has-symbols/index.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 447 bytes
RevLine 
[d565449]1'use strict';
2
3var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4var hasSymbolSham = require('./shams');
5
[79a0317]6/** @type {import('.')} */
[d565449]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.