CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
index.js15 linesDownload Raw Back to has-symbols
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};15