only delete first matching item from an array javascript code example
Example: javascript array delete first element
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();
// var fruits = ["Orange", "Apple", "Mango"];
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();
// var fruits = ["Orange", "Apple", "Mango"];