Answers for "how to get the last item from array in javascript"

0

get last item in array js

if (loc_array[loc_array.length - 1] === 'index.html') {
   // do something
} else {
   // something else
}
Posted by: Guest on May-03-2020

Code answers related to "how to get the last item from array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language