function | since v1.10.738 | Edit |
(index-ijs xs)
Given a sequence of cljs.closure/IJavaScript values, create an index using :provides. The original values will appear under each :provide.
(defn index-ijs
[xs]
(reduce
(fn [index x]
(merge index
(zipmap (:provides x) (repeat x))))
{} xs))