vec

functionsince v0.0-927 clojure.core/vecEdit
(vec coll)

Details:

Creates a new vector containing the contents of coll


See Also:


Source docstring:
Creates a new vector containing the contents of coll. JavaScript arrays
will be aliased and should not be modified.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn vec
  [coll]
  (cond
    (map-entry? coll)
    [(key coll) (val coll)]

    (vector? coll)
    (with-meta coll nil)

    (array? coll)
    (.fromArray PersistentVector coll true)

    :else
    (-persistent!
      (reduce -conj!
        (-as-transient (.-EMPTY PersistentVector))
        coll))))