enable-console-print!

functionsince v0.0-2060Edit
(enable-console-print!)

Source docstring:
Set *print-fn* to console.log
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(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)