Despite there being a number of "remove array items" in npm, I couldn't find satisfying all criteria:
- doesn't generate garbage
- performs similar or better to the native
- es3+ compatible
- has tests
so here we are.
(which is a gold mine for performant, non-garbage generating array operations by the way.)
const removeItems =const arr = 1 2 3 4 5 6 7 8 9// after execution, arr === [ 1, 2, 3, 8, 9 ]