Boolean is a function 28 Jul 2020 Since Boolean is a function you can write this: [].filter(Boolean);