• File: index.js
  • Full Path: /var/www/nodejs/daily_store_reports_nodejs/node_modules/has-symbols/index.js
  • Date Modified: 02/04/2023 9:31 PM
  • File size: 420 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';

var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = require('./shams');

module.exports = function hasNativeSymbols() {
	if (typeof origSymbol !== 'function') { return false; }
	if (typeof Symbol !== 'function') { return false; }
	if (typeof origSymbol('foo') !== 'symbol') { return false; }
	if (typeof Symbol('bar') !== 'symbol') { return false; }

	return hasSymbolSham();
};