JSPM

arr-remove

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q83114F
  • License MIT

Remove elements from a copy of an array

Package Exports

  • arr-remove

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arr-remove) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

arr-remove Build Status

Remove elements from a copy of an array

Install

$ npm install --save arr-remove

Usage

var remove = require('arr-remove');

remove([1, 2, 3], 1, 2) // => [1]

API

remove(input, index, count) -> array

Performs removal on a copy of the input and returns the resulting array.

input

Required
Type: array

index

Required
Type: number

The index at which to remove elements.

count

Type: number
Default: 1

The number of items to remove.

License

MIT © Ben Drucker