Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

array-exclude

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-exclude

Copy an array without the first n and last n indexes

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

array-exclude

Copy an array without the first n and last n indexes


var exclude = require('array-exclude')
  , arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
;

var newArr = exclude(arr, 2, 3);
// [ 3, 4, 5, 6, 7 ]

newArr === exclude;
// false

Installation

$ npm install array-exclude

Dependencies

none

API

exclude(source, [ fromStart ], [ fromEnd ])

  • fromStart - the number of indexes to exclude from the start of the array (default: 0)
  • fromEnd - the number of indexes to exclude from the end of the array (default: 0)

Keywords

exclude

FAQs

Package last updated on 02 Feb 2014

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