(vector->array v)

Source

(defn vector->array [v] (#?(:clj float-array :cljs clj->js) v))