Thanks Tiffany great article. Javascript is a great language for FP, I am loving learning FP with Javascript.
I had one (hopefully constructive) comment, is there a reason you use let as oppose to const? For me const is more intuitive given the FP immutability aspect. Just a thought if the aim is to make code as readable as possible. I believe .filter() returns a new array.
Thanks Tiffany great article. Javascript is a great language for FP, I am loving learning FP with Javascript.
I had one (hopefully constructive) comment, is there a reason you use let as oppose to const? For me const is more intuitive given the FP immutability aspect. Just a thought if the aim is to make code as readable as possible. I believe .filter() returns a new array.
I thought about using
const
when doing this but wasn't sure I should. I will change it.