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);
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #js #remove #element #array
ADD COMMENT
Topic
Name
5+8 =