Permalink
Browse files

* src/clj/cljs/core.clj: add coercive-not

  • Loading branch information...
David Nolen David Nolen
David Nolen authored and David Nolen committed May 3, 2012
1 parent 2cd15f8 commit 17a22acf66e7f64fdf02bf9ac80ba0600faf681f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/clj/cljs/core.clj
View
@@ -54,6 +54,10 @@
(defmacro nil? [x]
`(coercive-= ~x nil))
+;; internal - do not use.
+(defmacro coercive-not [x]
+ (bool-expr (list 'js* "(!~{})" x)))
+
;; internal - do not use.
(defmacro coercive-not= [x y]
(bool-expr (list 'js* "(~{} != ~{})" x y)))

0 comments on commit 17a22ac

Please sign in to comment.