Search
 
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
Name
1+6 =