arr.slice(-1)[0]

how get last array value in javascipt

Similar Code Examples