I have a clojure vector [1 2 3] and would like to create a js string representation of this '[1,2,3]' . I have been using js/JSON.stringify for this. Is there a better way?
just discovered the clj->js function, if anyone was wondering š
Iām confused. clj->js produces a javascript array [1, 2, 3] surely, and not a js string? Or are you doing (js/JSON.stringify (clj->js [1 2 3])) ?
@jf.slack-clojurians sorry, you're correct of course. I should have posted the full example.