Closed armed closed 2 years ago
Example for function return:
(defn my-fun [] (fn [] "foo"))
evaluates to (no return keyword)
var my_fun = function () { function () { return "foo"; } };
Example for await return:
(defn ^:async my-fun [url] (js/await (js/fetch url)))
evaluates to:
var my_fun = async function (url) { (await return fetch(url);) };
Example for function return:
evaluates to (no return keyword)
Example for await return:
evaluates to: