macro | since v1.7.10 | Edit |
(copy-arguments dest)
(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#))))))