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