r/Clojurescript • u/fasttalkerslowwalker • Dec 06 '22
Nested Values in JS Objects
Can anyone tell me why this is evaluating to nil?
(let [m (clj->js {"values" {"ab-c" "treas"}})]
(.. m -values -ab-c))
4
Upvotes
View all comments
Show parent comment
1
u/jmbuytaert Dec 06 '22
ooh that's cool, thanks for sharing!
I still think that the object that you insert in
(clj->jsshould be in CLJ format as in my example in previous comment