JavaScript Tips: Using Array.filter(Boolean)
![If you come across array.filter(Boolean) in JavaScript code, never fear! It's a handy bit of functional programming that cleans up arrays with null and undefined values in them.](https://res.cloudinary.com/mikebifulco-com/image/upload/c_limit,w_1200/f_auto/q_auto/v1/posts/javascript-filter-boolean/cover.webp?_a=BAVAfVBy0)
If you come across array.filter(Boolean) in JavaScript code, never fear! It's a handy bit of functional programming that cleans up arrays with null and undefined values in them.
Read more →Subscribe to 💌 Tiny Improvements, my weekly newsletter for product builders. It's a single, tiny idea to help you build better products.
If you come across array.filter(Boolean) in JavaScript code, never fear! It's a handy bit of functional programming that cleans up arrays with null and undefined values in them.
Read more →