let basketItems = [$('.basket__item')];
$('.basket__item-delete').on('click', function(){
while (basketItems[0].length != 0) {
basketItems[0].length = basketItems[0].length - 1;
console.log(basketItems[0].length);
$(this).parent().fadeOut('slow');
break;
}
if (basketItems[0].length == 0) {
$('.basket__header, .basket__steps, .basket__box').fadeOut('slow');
$('.basket__empty').fadeIn('slow');
}
});