(defn
vec
"Creates a new vector containing the contents of coll. JavaScript arrays\n will be aliased and should not be modified."
[coll]
(if
(array? coll)
(.fromArray PersistentVector coll true)
(-persistent!
(reduce -conj! (-as-transient (.-EMPTY PersistentVector)) coll))))