DEV Community

Discussion on: 1 line of code: How to clean an Array

Collapse
 
lexlohr profile image
Alex Lohr

Because it was explicitly stated that false and 0 should not be filtered. Your code would filter them.