function | since v0.0-2060 | Edit |
(enable-console-print!)
Set *print-fn* to console.log
(defn enable-console-print!
[]
(set! *print-newline* false)
(set-print-fn!
(fn []
(let [xs (js-arguments)]
(.apply (.-log js/console) js/console (garray/clone xs)))))
(set-print-err-fn!
(fn []
(let [xs (js-arguments)]
(.apply (.-error js/console) js/console (garray/clone xs)))))
nil)