kc-limit-res
v1.0.6
Published
[js] Limit results array.
Downloads
2
Readme
LimitRes
[js] Limit results array.
Install
npm install kc-limit-res
Use
var limitRes = require('kc-limit-res');
var arr = [1,2,3,4,5,6,7,8,9];
var res = limitRes(arr, 5);
console.log(res);