array-n-first
v1.0.1
Published
Short package to get the first n elements of an array
Downloads
5
Maintainers
Readme
array-n-first
Short package to get either the first n elements of an array or mid n elements of an array
Example
first([1,2,4,7],2)
// => [1,2]
midN([1,2,4,7],2,3)
// => [4,7]