It's quite often that I have an array of elements and when a certain condition happens that I need to remove a particular element from my JavaScript array.

Removing an element from an array is a two part process:

  1. Find the element in the array

  2. Remove the element at the position found

Let's take a look at an example: