Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove an item from the beginning of an Array

let first = fruits.shift() // remove Apple from the front
// ["Banana"]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Remove #item #beginning #Array
ADD COMMENT
Topic
Name
6+9 =