DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript array last element get
if (locArray.at(-1) === 'index.html') { // do something } else { // something else }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#array
#element
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit