DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get last item in map javascript
row.map((rank, i, arr) => { if (arr.length - 1 === i) { // last one } else { // not last one } });
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#item
#map
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit