deep-slice
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

deep-slice

Build Status Coverage Status npm version MIT licensed

Standard - JavaScript Style Guide

Recursive Array.prototype.slice()

Install

NPM

$ npm install --save deep-slice

Web Browser

<script src="https://unpkg.com/deep-slice/deep-slice.min.js"></script>

Usage

Parameters

  • items Array List of items
  • start number The beginning of the specified portion of the array.
  • end number 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

License

MIT © Denis Carriere

Package Sidebar

Install

npm i deep-slice

Weekly Downloads

2

Version

1.1.4

License

MIT

Last publish

Collaborators

  • deniscarriere