1.0.0 • Published 10 years ago
@micro-js/slice v1.0.0
slice
Shallow copy of array or portion of array.
Installation
$ npm install @micro-js/sliceUsage
var slice = require('@micro-js/slice')
slice([1, 2], 1) // => 2API
slice(array, begin, end)
array- source arraybegin- beginning of copyend- end of copy
Returns: copy of array
License
MIT