v1.12.1
Defines the behavior for:
tree.filter(predicate, options)
Invalid predicate
Only a string or a function is accepted for the predicate parameter. For example, tree.filter()
, tree.filter(null)
, tree.filter(0)
, or tree.filter({})
will render nothing.
Empty string
Calling tree.filter('')
will filter all nodes in the tree.