2.0.0 • Published 6 years ago

removeat v2.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

removeAt

Removes an item from an array based on index.

Install

$ npm install --save removeat

Usage

const removeAt = require('removeat');

let nums = [1,3,5,7,9];
let newNums = removeAt(nums, 2);
// => [1,3,7,9]

API

removeAt(array, index)

Returns the modified array.

array

Type: array

The array to modify.

index

Type: index

Position where to modify the array.

License

MIT © Kevin Freistroffer

2.0.0

6 years ago

1.1.1

6 years ago

1.0.0

6 years ago

1.2.3

6 years ago