News for hackers. Stuff that matters.
Re:FP techniques that will help you write better JavaScript by bluefirebrand on Friday February 11, 2022 @09:39AM (#30301970)
I see people use JavaScript Array.map a lot when they aren't doing anything with the returned array, which I find kind of irritating.

So if you're using map sensibly, no there's nothing wrong. But I don't like the dogma I read a lot which is "use map always" because it leads to inexperience developers using it in the wrong circumstances.

Re:FP techniques that will help you write better JavaScript by Akronymus on Friday February 11, 2022 @10:08AM (#30302278)
Does JS have something like array.iter?