Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 17a22acf66e7f64fdf02bf9ac80ba0600faf681f 1 parent 2cd15f8
David Nolen authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/clj/cljs/core.clj
View
4 src/clj/cljs/core.clj
@@ -55,6 +55,10 @@
`(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)))
Please sign in to comment.
Something went wrong with that request. Please try again.