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
condenser-0.1 lib/condenser/processors/node_modules/has-symbols/index.js
condenser-0.0.12 lib/condenser/processors/node_modules/has-symbols/index.js
condenser-0.0.11 lib/condenser/processors/node_modules/has-symbols/index.js
condenser-0.0.10 lib/condenser/processors/node_modules/has-symbols/index.js
condenser-0.0.9 lib/condenser/processors/node_modules/has-symbols/index.js
condenser-0.0.8 lib/condenser/processors/node_modules/has-symbols/index.js
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/has-symbols/index.js
jester-data-8.0.0 node_modules/has-symbols/index.js
ezii-os-5.2.1 node_modules/has-symbols/index.js
ezii-os-2.0.1 node_modules/has-symbols/index.js
ezii-os-1.1.0 node_modules/has-symbols/index.js
ezii-os-1.0.0 node_modules/has-symbols/index.js
condenser-0.0.7 lib/condenser/processors/node_modules/has-symbols/index.js
ezii-os-0.0.0.1.0 node_modules/has-symbols/index.js
ezii-os-0.0.0.0.1 node_modules/has-symbols/index.js
govuk_publishing_components-18.0.0 node_modules/has-symbols/index.js
govuk_publishing_components-17.21.0 node_modules/has-symbols/index.js
govuk_publishing_components-17.20.0 node_modules/has-symbols/index.js
govuk_publishing_components-17.19.1 node_modules/has-symbols/index.js
govuk_publishing_components-17.19.0 node_modules/has-symbols/index.js