Javascript interop assignment in Clojurescript
-
31-01-2021 - |
Pregunta
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 ?
Solución
Try some thing like
(set! (.-property foo) 5)
Otros consejos
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow