While working on an isNumeric function I found this edge case:
[5] is considered a number, can be used with numerical operators like +, -,/ etc and gives 5 when given to parseFloat.
Why does JavaScript convert a single value array to a number?
For example
const x = [10];
console.log(x - 5, typeof x);
gives
5 object