In JavaScript, how to easily remove boolean values from an array consisting of numbers and booleans?
In JavaScript, I have an array containing boolean values and integer numbers, eg [1, true, 2, false, 3] I want to get an array with the boolean values removed. I tried > [1, true, 2, false, 3].filter(Number) [ 1, true,…