json-dom
    Preparing search index...

    Function isDomItem

    • Whether an item, and every item below it, has the render trait: the tree json-dom's render and sync functions work on. hasTrait only checks the one item, so use this where a tree comes from somewhere else. It is also a type guard.

      Parameters

      • item: CoreItem

        The item at the top of the tree to check.

      Returns item is DomItem