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
optimacms-0.1.61 spec/dummy/node_modules/has-symbols/index.js
disco_app-0.18.0 test/dummy/node_modules/has-symbols/index.js
disco_app-0.18.2 test/dummy/node_modules/has-symbols/index.js
disco_app-0.16.1 test/dummy/node_modules/has-symbols/index.js
disco_app-0.15.2 test/dummy/node_modules/has-symbols/index.js
disco_app-0.18.4 test/dummy/node_modules/has-symbols/index.js
disco_app-0.18.1 test/dummy/node_modules/has-symbols/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/has-symbols/index.js
disco_app-0.14.0 test/dummy/node_modules/has-symbols/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/has-symbols/index.js
tang-0.2.1 spec/tang_app/node_modules/has-symbols/index.js
tang-0.2.0 spec/tang_app/node_modules/has-symbols/index.js
tang-0.1.0 spec/tang_app/node_modules/has-symbols/index.js
tang-0.0.9 spec/tang_app/node_modules/has-symbols/index.js
enju_library-0.3.8 spec/dummy/node_modules/has-symbols/index.js
condenser-0.3 lib/condenser/processors/node_modules/has-symbols/index.js
ilog-0.4.1 node_modules/has-symbols/index.js
ilog-0.4.0 node_modules/has-symbols/index.js
ilog-0.3.3 node_modules/has-symbols/index.js
condenser-0.2 lib/condenser/processors/node_modules/has-symbols/index.js