--destructure-map

functionsince v1.10.844Edit
(--destructure-map gmap)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn --destructure-map [gmap]
  (if (implements? ISeq gmap)
    (if (next gmap)
      (.createAsIfByAssoc PersistentArrayMap (to-array gmap))
      (if (seq gmap)
        (first gmap)
        (.-EMPTY PersistentArrayMap)))
    gmap))