@myshell/angular-select-dropdown
Version:
A angular(4+) select dropdown for single select or multiselect module.
22 lines • 708 B
JavaScript
import { Pipe } from "@angular/core";
var LimitToPipe = /** @class */ (function () {
function LimitToPipe() {
}
LimitToPipe.prototype.transform = function (array, itemsCount, startIndex) {
if (startIndex === void 0) { startIndex = 0; }
if (!Array.isArray(array)) {
return array;
}
return array.slice(startIndex, startIndex + itemsCount);
};
LimitToPipe.decorators = [
{ type: Pipe, args: [{
name: "limitTo"
},] },
];
/** @nocollapse */
LimitToPipe.ctorParameters = function () { return []; };
return LimitToPipe;
}());
export { LimitToPipe };
//# sourceMappingURL=limit-to.pipe.js.map