Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deep-slice

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-slice

Recursive Array.prototype.slice()

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 30 Jan 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc