1.0.0 • Published 6 years ago

@writetome51/array-remove-items v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

To include in your project:

import {removeItems} from '@writetome51/array-remove-items';

removeItems(indexes: number[], array): void

Removes items from array, identified by indexes. Indexes can be negative or positive.

Examples:

let arr = 1,2,3,4,5,6,7;

removeItems(-1, 0, 1, arr);

arr is now 3,4,5,6

let arr = 4,5,6,7,8,9,10;

removeItems(2, 4, 6, arr);

arr is now 4,5,7,9