UNPKG

@evil-gauss/core

Version:
22 lines 605 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConstSortedArray = void 0; const const_array_model_1 = require("./const-array.model"); class ConstSortedArray extends const_array_model_1.ConstArray { sort; limit; constructor(sort, limit) { super(limit); this.sort = sort; this.limit = limit; } in(item) { super.in(item); this._array = this._array.sort(this.sort); } out() { super.out(0); } } exports.ConstSortedArray = ConstSortedArray; //# sourceMappingURL=const-sorted-array.model.js.map