You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

array-splice

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-splice

A splice method for arrays that doesn't require adding each element individually

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

array-splice

Javascript's Array.splice() method is fucking useless.

Usage: var parent = [1,2,99,5,6] var splice = [3,4] var removed = array-splice.splice(parent,2,1,splice)

Now: parent = [1,2,3,4,5,6] removed = [99]

FAQs

Package last updated on 29 Jun 2013

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