Very cool, thanks! On Saturday, June 15, 2019 at 8:31:52 AM UTC-7, Mike Fikes wrote: > > https://github.com/mfikes/cljs-bean > > Like clojure.core/bean, but for ClojureScript. > > > (require '[cljs-bean.core :refer [bean]]) > > (bean #js {:a 1, :b 2}) > ;; => {:a 1, :b 2} > > > This lets you interoperate with JavaScript objects in an idiomatic fashion, > while being an order of > magnitude faster than equivalent constructs using js->clj: > > > (let [{:keys [a b]} (bean #js {:a 1, :b 2})] > (+ a b)) > > >
-- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript. To view this discussion on the web visit https://groups.google.com/d/msgid/clojurescript/5cf9eb19-0346-4914-9d41-5d381c7c281c%40googlegroups.com.