function/macro | since v0.0-927 | clojure.core/number? | Edit |
(number? x)
Returns true if n
is a number, false otherwise.
Returns true if x is a JavaScript number.
(defn ^boolean number?
[x]
(cljs.core/number? x))
(core/defmacro number? [x]
(bool-expr (core/list 'js* "typeof ~{} === 'number'" x)))