string?

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

Details:

Returns true if x is a string, false otherwise.


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

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