Sha256: bc80a635b4516bb4d42dcc8953422560e78e487f37dd753c3ee41258d15277aa

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

export const HAS_NATIVE_SYMBOL = (function () {
    if (typeof Symbol !== 'function') {
        return false;
    }
    // use `Object`'s `.toString` directly to prevent us from detecting
    // polyfills as native
    return Object.prototype.toString.call(Symbol()) === '[object Symbol]';
})();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/utils/lib/symbol-utils.js
discourse-ember-source-3.5.1.1 dist/es/ember-utils/lib/symbol-utils.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-utils/lib/symbol-utils.js