3 ms·
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 se
by bluefirebrand 5y 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.
- Akronymus 5y agoDoes JS have something like array.iter?