function | since v0.0-1798 | Edit |
(key->js k)
(key->js k primitive-fn)
(defn key->js
([k] (key->js k clj->js))
([k primitive-fn]
(cond
(satisfies? IEncodeJS k) (-clj->js k)
(or (string? k)
(number? k)
(keyword? k)
(symbol? k)) (primitive-fn k)
:default (pr-str k))))