The tree.has utility accepts a path
into a tree and an optional type-guard, and returns
a predicate that returns true if its argument
'has' the specified path.
If the optional type-guard is provided, tree.has
will also apply the type-guard to the value it finds at
the provided path.
tree.has
The
tree.has
utility accepts a path into a tree and an optional type-guard, and returns a predicate that returns true if its argument 'has' the specified path.If the optional type-guard is provided,
tree.has
will also apply the type-guard to the value it finds at the provided path.