Skip to content

TraverseOptions

TraverseOptions = GetObjectKeysOptions & object

Defined in: packages/core/src/object/traverse.ts:66

optional traverseArrays?: boolean

Whether to traverse into array elements

true

optional traverseCustomObjects?: TraverseCustomObjectsOption

Controls traversal into custom object (user-defined class instances) properties - false: Don’t traverse custom objects (treat as opaque) - Constructor[]: Only traverse instances of these classes (or their descendants) - (value: object) => boolean: Custom predicate to determine traversability

false

optional traverseMapKeys?: boolean

Whether to traverse into Map keys specifically Only applies when traverseMaps is true

false

optional traverseMaps?: boolean

Whether to traverse into Map keys and values

true

optional traversePlainObjects?: boolean

Whether to traverse into plain object (POJO) properties

true

optional traverseSets?: boolean

Whether to traverse into Set values

true

optional visitObjects?: boolean

Whether to call the visitor on object values (arrays, maps, sets, plain objects, custom objects)

true

optional visitPrimitives?: boolean

Whether to call the visitor on primitive values (string, number, boolean, null, undefined, symbol, bigint)

true