Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove first element of array javascript

const arr = ['foo', 'bar', 'qux', 'buz'];

arr.shift();	// 'foo'
arr;			// ['bar', 'qux', 'buz']
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #remove #element #array #javascript
ADD COMMENT
Topic
Name
3+9 =