@f/slice
1.1.3 • Public • Published
slice
Shallow copy of array or portion of array.
Installation
$ npm install @f/slice
Usage
var slice = require('@f/slice')
slice([1, 2], 1) // => 2
API
slice(array, begin, end)
-
array
- source array
-
begin
- beginning of copy
-
end
- end of copy
Returns: copy of array
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.1.3
285
Version History
Package Sidebar
Install
Weekly Downloads