The value of the last item in a javascript array

arr.split(-1)[0]