in a forum found this
as the best solution, is it? Plus why both !isNAN and isFinite() are used together, which weaknesses each other covers?
Code:
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
Comment