This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-21
Channels
- # announcements (5)
- # babashka (9)
- # beginners (84)
- # calva (47)
- # clara (3)
- # clj-kondo (2)
- # clojars (8)
- # clojure-australia (3)
- # clojure-europe (3)
- # clojure-spec (1)
- # clojurescript (5)
- # conjure (6)
- # cursive (7)
- # datahike (3)
- # events (2)
- # helix (1)
- # lsp (217)
- # luminus (4)
- # malli (18)
- # meander (23)
- # membrane (12)
- # off-topic (26)
- # pathom (12)
- # reagent (44)
- # releases (1)
- # rewrite-clj (2)
- # shadow-cljs (19)
- # sql (17)
- # xtdb (6)
Is it possible to make a ClojureScript object behave as a JavaScript object?
I mean: to pass a modification of a ClojureScript object to a JavaScript function that expects a JavaScript object with converting the whole ClojureScript object
I know that https://github.com/mfikes/cljs-bean by @mfikes allows the opposite direction
You could try https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
I tried and it seems to work even for deeply nested maps! https://gist.github.com/viebel/6086821294611d4be3f45ccc28060f2e