copy-arguments

macrosince v1.7.10Edit
(copy-arguments dest)

Source code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro copy-arguments [dest]
  `(let [len# (alength (js-arguments))]
     (loop [i# 0]
       (when (< i# len#)
         (.push ~dest (unchecked-get (js-arguments) i#))
         (recur (inc i#))))))