Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to select last element in a array

if (loc_array[loc_array.length - 1] === 'index.html') {
   // do something
} else {
   // something else karunakar
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #element #array
ADD COMMENT
Topic
Name
9+6 =