Skip to content
Browse files

add boolean type-hint to isNaN call

  • Loading branch information...
1 parent 3c210d9 commit c7198c9da13e5ada7dea287ad3eb9afdf63d2af9 David Nolen committed Sep 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cljs/cljs/core.cljs
2 src/cljs/cljs/core.cljs
@@ -1020,7 +1020,7 @@ reduces them without incurring seq initialization"
(and (number? n)
(coercive-= (js/parseFloat n) (js/parseInt n 10))
- (not (js/isNaN n))))
+ (not ^boolean (js/isNaN n))))
(defn ^boolean contains?
"Returns true if key is present in the given collection, otherwise

0 comments on commit c7198c9

Please sign in to comment.
Something went wrong with that request. Please try again.