Usuń ostatni wpis z tablicy w JavaScript

arr.slice(0, -1);    // returns [1,0]
Graceful Gull