UNPKG

scheunemann-interfaces

Version:
18 lines (17 loc) 635 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.factoryEnvelopeArrayPagination = void 0; // #region Functions (1) // Creates an envelope containing an array of items with pagination support function factoryEnvelopeArrayPagination(items, offSet, limit, total) { var data = { offSet: offSet, limit: limit, itemsTotal: items.length, total: total || items.length, items: items, }; return data; // Consider returning a frozen copy for immutability } exports.factoryEnvelopeArrayPagination = factoryEnvelopeArrayPagination; // #endregion Functions (1)