UNPKG

@evil-gauss/core

Version:
23 lines 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConstArray = void 0; class ConstArray { limit; _array = []; constructor(limit) { this.limit = limit; } get items() { return this._array; } in(item) { if (this._array.length === this.limit) return; this._array.push(item); } out(index) { this._array.splice(index, 1); } } exports.ConstArray = ConstArray; //# sourceMappingURL=const-array.model.js.map