Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get all array elements except last

loc_array = loc_array.slice(0, -1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #array #elements
ADD COMMENT
Topic
Name
7+8 =