DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit