into-array

functionsince v0.0-1211 clojure.core/into-arrayEdit
(into-array aseq)
(into-array type aseq)

Details:

Returns a new JavaScript array from the elements of aseq.


See Also:


Source docstring:
Returns an array with components set to the values in aseq. Optional type
argument accepted for compatibility with Clojure.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^array into-array
  ([aseq]
     (into-array nil aseq))
  ([type aseq]
     (reduce (fn [a x] (.push a x) a) (array) aseq)))