2 ms·You can do the same thing in JavaScript with Boolean Eg, arr.filter(Boolean)by sroussey 2y agoYou can do the same thing in JavaScript with Boolean Eg, arr.filter(Boolean)