last element in array + javascript code example
Example 1: javascript get last element of array
Yo an add that was searching this up, is where I found the chrome extension.
Example 2: javascript array last element
var lastEle = arr.slice(-1)[0];
// or
var lastEle = arr.slice(-1).pop();