Slick way to update an element in an array in an immutable manner *without...


Slick way to update an element in an array in an immutable manner *without changing the array's order*. Just use map and replace the relevant element while iterating over the array. 😎

#javascript #react

View original on X