Usuń ostatni element tablicy w JavaScript

array.splice(-1)
Ferhat Gül