Skip to main content

make-array

macrov1.7

cljs.core/make-array

Available in:BBCLJCLJS
(make-array [size] [type size] [type size & more-sizes])
Construct a JavaScript array of the specified dimensions. Accepts ignored type argument for compatibility with Clojure. Note that there is no efficient way to allocate multi-dimensional arrays in JavaScript; as such, this function will run in polynomial time when called with 3 or more arguments.

No examples yet. Be the first to add one!