Interface PathKeyIteratorOptions

Defines bounded traversal options for pathKeyIterator.

Returned paths remain absolute when a prefix is selected. stopPath must equal or descend from prefixPath when both are supplied.

interface PathKeyIteratorOptions {
    arrayIndex?: boolean;
    hasOwnOnly?: boolean;
    maxDepth?: number;
    maxResults?: number;
    maxVisits?: number;
    prefixPath?: PropertyPath;
    stopPath?: PropertyPath;
}
Hierarchy
Index
arrayIndex?: boolean

Whether numeric array indexes are included.

false
hasOwnOnly?: boolean

Whether traversal is restricted to enumerable own properties.

true
maxDepth?: number

Maximum number of property-key segments traversed beneath a selected prefix, or beneath the root when no prefix is supplied. A value of 0 selects only the prefix itself when the iterator supports a prefix.

maxResults?: number

Maximum number of paths or entries yielded by one traversal. Reaching this limit truncates normally.

maxVisits?: number

Maximum number of object properties or trie nodes processed during iterative traversal. Exceeding this limit throws.

prefixPath?: PropertyPath

Absolute enumerable property path selecting the object branch where traversal begins.

stopPath?: PropertyPath

Absolute property path yielded as terminal while pruning all descendants beneath it.