Removes an item from an array based on index.
$ npm install --save removeat
const removeAt = require('removeat');
let nums = [1,3,5,7,9];
let newNums = removeAt(nums, 2);
// => [1,3,7,9]
Returns the modified array.
Type: array
The array to modify.
Type: index
Position where to modify the array.
MIT © [Kevin Freistroffer]