Pure function to shuffle an array in Typescript using fp-ts
Sandro Maglione
Check out my newsletter 👨💻Web development
16 January 2022
•1 min read
Sandro Maglione
Web development
This is a pure function (without side-effects) that allows you to shuffle a given array in Typescript. The code uses fp-ts
for the IO
type.