Hello SirWolf, thanks for commenting! Personally, even having written this article and working full-time as a freelance React developer for the last two years, I wasn’t aware .filter(e=>e) would have this behavior. Of course, if I saw it in a code base and tried it, it would become obvious — falsy behavior and all — but I’d love a // remove falsy comment for clarity. Then again, my code has 50x the comments of any code examples I ever read online, so maybe that’s just my style. I think the ??
and ?.
operators are great, though I haven’t quite adopted to using them myself yet. Did you see that ??=
(Nullish Coalescing & Equals) is going to be an ES2021 feature? Cool stuff. Thanks so much for taking the time to read and respond!