Hacker News new | ask | show | jobs
by bluefirebrand 1583 days ago
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.

1 comments

Does JS have something like array.iter?