Socket
Socket
Sign inDemoInstall

deep-slice

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deep-slice

Recursive Array.prototype.slice()


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Install size
7.33 kB
Created
Weekly downloads
 

Readme

Source

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.

License

MIT © Denis Carriere

Keywords

FAQs

Last updated on 30 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc