(loaded-js-ns? env prefix)
Check if a JavaScript namespace has been loaded. JavaScript vars are
not currently checked.
Source
(defn loaded-js-ns?
"Check if a JavaScript namespace has been loaded. JavaScript vars are
not currently checked."
#?(:cljs {:tag boolean})
[env prefix]
(when-not (gets @env/*compiler* ::namespaces prefix)
(let [ns (:ns env)]
(or (some? (get (:requires ns) prefix))
(some? (get (:imports ns) prefix))))))