Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get last item in array in JavaScript

["a", "b", "c"].at(-1); // "c"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #item #array #JavaScript
ADD COMMENT
Topic
Name
1+1 =