DEV Community

Cover image for Filtering Arrays Like A Pro

Filtering Arrays Like A Pro

Anurag Hazra on November 10, 2019

This post was originally published in my site Filtering arrays is the most common thing you might do as a javascript developer, and I know it can ...
Collapse
 
dbanisimov profile image
Denis Anisimov

As a coffee snob I'm perplexed by the cover photo 😧

Collapse
 
monfernape profile image
Usman Khalil • Edited

Wow. They are some really cool things. May be weird too

Collapse
 
franky47 profile image
François Best

I agree with the weird part. Some of these tricks might look clever, but your future self/colleague/contributor/whoever reads this code in the near/far future may not know the trick, or have forgotten about it, and this will not look professional.

Want to filter like a pro? Write simple code.

Collapse
 
anuraghazra profile image
Anurag Hazra

Yes, they are little bit weird too.

Collapse
 
mkrl profile image
Mikhail Korolev • Edited

Nice article. But why on earth would you pour over your coffee three times? That image grinds my gears.

Collapse
 
anuraghazra profile image
Anurag Hazra

😂 haha.. Lol