Finden Sie das letzte Element in Array -NodeJs
var a = loc_array.slice(-1)[0]
Bewildered Badger
var a = loc_array.slice(-1)[0]
var last = arr.slice(-1)[0]