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