0

Can I have a JS lambdas in Clojurescript? I have

.then((entry) => console.log(entry))

How will it work in CLJS?

1 Answer 1

3

A lambda is made with fn:

(.then promise (fn [entry] (.log js/console entry)))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.