1.0.1 • Published 6 years ago
@writetome51/array-remove-item v1.0.1
Removes single item from array, identified by a passed index.
let arr = 1,2,3,4,5,6;
removeItem(2, arr); // arr now contains 1,2,4,5,6
You can also use a negative index:
removeItem(-2, arr); // arr now contains 1,2,4,6