Pure function to update elements in array that are equal in Typescript
Sandro Maglione
Check out my newsletter 👨💻Web development
16 January 2022
•1 min read
Sandro Maglione
Web development
This function allows you to update all the elements in a given array that match the given Eq
instance.
This is a pure function (without side-effects) based on functional programming using fp-ts
.