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. Let's explore how indexOf and splice accomplish this.