array-removeat
v1.0.0
Published
Removes an item from a specific position.
Downloads
3
Maintainers
Readme
array-removeAt
Removes an item from a specific position.
Install
$ npm install --save array-removeat
Usage
var removeAt = require('array-removeat');
removeAt([1, 2, 3], 1);
// => [1, 3]
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 © Emil Johansson