filter(Boolean) removes more than just null and undefined.
It also removes 0, false, and ''.
Those can all be perfectly valid values.
If your intent is specifically “remove nullish values”, make that intent explicit. 🛡️
https://is-kit.dev/guides/filter-null-and-undefined
#TypeScript #JavaScript #OpenSource