Sha256: 70b8cdc9ca7272c08aaa071be0b181dfb732234c24404f7d8347279859eec55a

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

/* globals WeakSet */
export default (typeof WeakSet === 'function'
    ? WeakSet
    : class WeakSetPolyFill {
        constructor() {
            this._map = new WeakMap();
        }
        add(val) {
            this._map.set(val, true);
            return this;
        }
        delete(val) {
            return this._map.delete(val);
        }
        has(val) {
            return this._map.has(val);
        }
    });

Version data entries

3 entries across 3 versions & 1 rubygems

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