cljs.build.api/index-ijs

functionsince v1.10.738Edit
(index-ijs xs)

Source docstring:
Given a sequence of cljs.closure/IJavaScript values, create an index using
:provides. The original values will appear under each :provide.
Source code @ clojurescript:src/main/clojure/cljs/build/api.clj
(defn index-ijs
  [xs]
  (reduce
    (fn [index x]
      (merge index
        (zipmap (:provides x) (repeat x))))
    {} xs))