How do I bind the resolved return value (in this case a json object) of a Javascript promise in a let block? all I get is a #object[Promise [object Promise]]
For instance:
(.then (fn-that-returns-a-js-promise) #(print (.-prop %)))
prints the value of prop to the the console, while:
(let [prop (.then (fn-that-returns-a-js-promise) #(.-prop %))] (print prop))
prints #object[Promise [object Promise]]