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.
The item at the top of the tree to check.
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.