It is very common use to remove a specific element of an array when we need to present all elements of an array but
there is a element or more than one to be removed. I would try to guide you with example;
Suppose there is an array;

var arrayValues = [2,3,7];
var selection = arrayValues.indexOf(3);
if (selection > -1 {
arrayValues.splice(selection, 1);

the result would be;

arrayValues= [2,7]

Leave a Reply