1.1.4 • Published 9 years ago
deep-slice v1.1.4
deep-slice
Recursive Array.prototype.slice()
Install
NPM
$ npm install --save deep-sliceWeb Browser
<script src="https://unpkg.com/deep-slice/deep-slice.min.js"></script>Usage
Parameters
itemsArray List of itemsstartnumber The beginning of the specified portion of the array.endnumber The end of the specified portion of the array.
Examples
const deepSlice = require('deep-slice')
deepSlice([[10, 20, 30], [40, 50, 60]], 0, 2)
//=[[10, 20], [40, 50]]Returns Array Returns a section of an array.
Related
- Array.prototype.slice() Mozilla Javascript reference
License
MIT © Denis Carriere