Home Angular 8 Angular 9 – how to remove last array element?