number?

function/macrosince v0.0-927 clojure.core/number?Edit
(number? x)

Details:

Returns true if n is a number, false otherwise.


See Also:


Source docstring:
Returns true if x is a JavaScript number.
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^boolean number?
  [x]
  (cljs.core/number? x))

Macro code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro number? [x]
  (bool-expr (core/list 'js* "typeof ~{} === 'number'" x)))