filter

external val filter: NodeFilter?(source)

The TreeWalker.filter read-only property returns the NodeFilter associated with the TreeWalker.

MDN Reference