Dumb question: how do I do Javascript assignment in Clojurescript ? I'm using a Javascript lib and need to set the value of an object's field like obj.this=that;
- I don't know Javascript so maybe there's a .set method ?
Try some thing like
(set! (.-property foo) 5)
Use
(aset foo "property" 5)
Be aware, that symbolic references may fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With