function | since v0.0-1503 | Edit |
(meta sym cb)
Queries the reflection api with a fully qualified symbol, then calls callback fn cb with the evaluated cljs map containing that symbol's meta information.
(defn meta
[sym cb]
(query-reflection (str "var=" (js/encodeURIComponent (str sym)))
#(cb (evaluate-javascript %))))