androberts

Results comments of androberts

consistency aside, isn't it a logical paradox that something can be both a number and not a number? `if (!isNaN(num) && angular.isNumber(num)) { /* robots' heads explode */ }` Like...

(For the benefit of others reading this -- maybe a call to `Number.isFinite()` is more appropriate if you want NaNs and Infinities to return false: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite )

+1 for avoiding double negatives