MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / limitBy

Function limitBy

06.Router/basic/js/vue.js:9623–9627  ·  view source on GitHub ↗

* Limit filter for arrays * * @param {Number} n * @param {Number} offset (Decimal expected)

(arr, n, offset)

Source from the content-addressed store, hash-verified

9621 */
9622
9623 function limitBy(arr, n, offset) {
9624 offset = offset ? parseInt(offset, 10) : 0;
9625 n = toNumber(n);
9626 return typeof n === 'number' ? arr.slice(offset, offset + n) : arr;
9627 }
9628
9629 /**
9630 * Filter filter for arrays

Callers

nothing calls this directly

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected