Sha256: b5d3a9379639d4299a654f78a0aa708a8981219a50e6ecbbd52219281a26ddbc

Contents?: true

Size: 394 Bytes

Versions: 81

Compression:

Stored size: 394 Bytes

Contents

'use strict';

var origSymbol = global.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();
};

Version data entries

81 entries across 81 versions & 11 rubygems

Version Path
govuk_publishing_components-17.2.0 node_modules/has-symbols/index.js
govuk_publishing_components-17.1.1 node_modules/has-symbols/index.js
govuk_publishing_components-17.1.0 node_modules/has-symbols/index.js
govuk_publishing_components-17.0.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.29.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.28.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.27.1 node_modules/has-symbols/index.js
govuk_publishing_components-16.27.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.26.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.25.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.24.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.23.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.22.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.21.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.20.1 node_modules/has-symbols/index.js
govuk_publishing_components-16.20.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.19.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.18.0 node_modules/has-symbols/index.js
govuk_publishing_components-16.17.0 node_modules/has-symbols/index.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/has-symbols/index.js