[Solved] Find and remove all non numbers from array in JavaScript w/out JQuery


Array.splice is useful here. I’m sure this solution can be optimized.

array.forEach((item, index) => typeof item !== 'number' && array.splice(index, 1));

6

solved Find and remove all non numbers from array in JavaScript w/out JQuery