| function | since v0.0-927 | Edit |
(parents tag)(parents h tag)Returns the immediate 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
(defn parents
([tag] (parents @(get-global-hierarchy) tag))
([h tag]
(not-empty
(let [tp (get (:parents h) tag)]
(if (js-fn? tag)
(into (set (bases tag)) tp)
tp)))))