Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove first element from array in javascript

var arr = ["f", "o", "o", "b", "a", "r"]; 
arr.shift(); 
console.log(arr); // ["o", "o", "b", "a", "r"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #element #array #javascript
ADD COMMENT
Topic
Name
5+9 =