ancestors

functionsince v0.0-927 clojure.core/ancestorsEdit
(ancestors tag)
(ancestors h tag)

See Also:


Source docstring:
Returns the immediate and indirect parents of tag, either via a JavaScript type
inheritance relationship or a relationship established via derive. h
must be a hierarchy obtained from make-hierarchy, if not supplied
defaults to the global hierarchy
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ancestors
  ([tag] (ancestors @(get-global-hierarchy) tag))
  ([h tag] (not-empty (get (:ancestors h) tag))))