/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/rxjs/_esm5/util/Set.js
32 строки
1 KB
EvgeniyBudaev
Initial commit
17 фев 2020, 09:02
17 фев 2020, 09:02
bb6f06f
Код
Авторство
О чём код?
/** 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