How to remove an object that matches a filter from a JavaScript array using array.splice(index, howMany) method.

Ghost Together
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…

--

--

Ghost Together

Ghost Together @ https://semicolon.dev is an alternative to Twitter. Sign up to meet other makers of things.