1 line of code: How to clean an Array
const clean = arr.filter(item =&gt; !!item || item === 0 || item === false);        Enter fullscreen...
Tags: javascript, webdev, productivity, codequality