Sha256: 2c7098a15204dcd650d42038d389a0bbf815bee75b8a2d79bbc379cf8e31dcee
Contents?: true
Size: 474 Bytes
Versions: 56
Compression:
Stored size: 474 Bytes
Contents
'use strict'; var validTypes = { object: true, symbol: true }; module.exports = function () { var symbol; if (typeof Symbol !== 'function') return false; symbol = Symbol('test symbol'); try { String(symbol); } catch (e) { return false; } // Return 'true' also for polyfills if (!validTypes[typeof Symbol.iterator]) return false; if (!validTypes[typeof Symbol.toPrimitive]) return false; if (!validTypes[typeof Symbol.toStringTag]) return false; return true; };
Version data entries
56 entries across 55 versions & 7 rubygems