I\'m trying to filter all non-numeric elements out from an array. We can see the desired output when using typeof. But with Number, it filters zero out.
Here\'s the
It's because 0 is a falsy value which returns false, and anything that returns false to the filter function is filtered out of the new array.
https://developer.mozilla.org/en-US/docs/Glossary/Falsy