Skip to content
Advertisement

Equivalent function in JavaScript/Ramda as Clojure’s juxt

I need the functionality of Clojure’s juxt function in JavaScript. Is there a native function for this? We’re using the Ramda functional JavaScript library. Is there a Ramda function with the juxt functionality?

I know, of course, I can write this function myself. This is for educational purposes.

Advertisement

Answer

At some extent the R.ap looks like what you want.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement