Lucinex
Joined 12/22/2021
Lucinex said about 2 years ago on Shopping Cart with Turbo :
What drove the decision behind this line of code:
        cart_item.quantity = [cart_item.quantity - 1, 1].max

Is it written like that to avoid using a conditional? For performance reasons? Both?