obj-map

functionsince v0.0-1443Edit
(obj-map & keyvals)

Source docstring:
keyval => key val
Returns a new object map with supplied mappings.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn obj-map
  [& keyvals]
  (let [ks  (array)
        obj (js-obj)]
    (loop [kvs (seq keyvals)]
      (if kvs
        (do (.push ks (first kvs))
            (gobject/set obj (first kvs) (second kvs))
            (recur (nnext kvs)))
        (.fromObject ObjMap ks obj)))))