Sha256: d433df909dc80f4cdb14c0c0989d83ef0731e9ab5ec319ea0eb205bf25dea36f

Contents?: true

Size: 1.04 KB

Versions: 49

Compression:

Stored size: 1.04 KB

Contents

/** PURE_IMPORTS_START ._root PURE_IMPORTS_END */
import { root } from './root';
export function minimalSetImpl() {
    // THIS IS NOT a full impl of Set, this is just the minimum
    // bits of functionality we need for this library.
    return (function () {
        function MinimalSet() {
            this._values = [];
        }
        MinimalSet.prototype.add = function (value) {
            if (!this.has(value)) {
                this._values.push(value);
            }
        };
        MinimalSet.prototype.has = function (value) {
            return this._values.indexOf(value) !== -1;
        };
        Object.defineProperty(MinimalSet.prototype, "size", {
            get: function () {
                return this._values.length;
            },
            enumerable: true,
            configurable: true
        });
        MinimalSet.prototype.clear = function () {
            this._values.length = 0;
        };
        return MinimalSet;
    }());
}
export var Set = root.Set || /*@__PURE__*/ minimalSetImpl();
//# sourceMappingURL=Set.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/_esm5/util/Set.js
ilog-0.4.0 node_modules/rxjs/_esm5/util/Set.js
ilog-0.3.3 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-18.0.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.21.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.20.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.19.1 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.19.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.18.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.17.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.16.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.15.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.14.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.13.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.12.2 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.12.1 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.12.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.11.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.10.0 node_modules/rxjs/_esm5/util/Set.js
govuk_publishing_components-17.9.0 node_modules/rxjs/_esm5/util/Set.js