Remove last item from array

Use splice(startPosition, deleteCount)

array.splice(-1)

Show code snippet

Leave a Comment