33

Well, after two hours of scratching my head, I found that angular.isNumber () returns true when you pass in a NaN. Brilliant.

Comments
  • 2
    Never worked with angular.

    But they thought,
    "hey NaN contains Number"
    so let it be -> .isNumber(NaN) = true

    IMO trolling at its best
  • 1
    @scriptex - I ended up using both functions. But, I did expect Angulars function would already use the NaN check.
Add Comment