DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript how to get last property of object
fruitObject[Object.keys(fruitObject)[Object.keys(fruitObject).length - 1]] // "carrot"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#property
#object
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit