json-function
Version:
It allows you to use methods such as where, limit, select, orderBy on JSON data.
1 lines • 283 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var _typeCheck=require("../../utils/type-check"),limit=function(a,b,c){return(0,_typeCheck.isArray)(a)?((0,_typeCheck.isNumber)(b)||(b=10),(0,_typeCheck.isNumber)(c)||(c=0),a.slice(c,b+c)):[]};exports.default=limit;