Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove first and last element from array

a = [1,2,3,4]
b = a.slice(1,-1);
 
PREVIOUS NEXT
Tagged: #js #remove #element #array
ADD COMMENT
Topic
Name
8+7 =