How to remove an object that matches a filter from a JavaScript array using array.splice(index, howMany) method.
4 min readDec 22, 2020
Functions used in this tutorial:
- array.some — check if at least one item exists in array.
- array.findIndex — find index of an object in array of objects.
- array.splice(index, howManyToDelete) — split array…