delete the first object of the array code example
Example: javascript remove first item from array
var colors = ["red", "green", "blue"];
var red=colors.shift();
//colors is now ["green","blue"];
var colors = ["red", "green", "blue"];
var red=colors.shift();
//colors is now ["green","blue"];