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

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…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store