Methods
# static create(rootTarget, opts)
Creates a path-aware proxy for the target object
.Creates a path-aware proxy for the target object
Parameters:
Name | Type | Description |
---|---|---|
rootTarget |
T
|
The target object to proxy |
opts |
Configuration options |
|
getValue |
Custom function to get property value |
|
getParent |
Custom function to get parent object |
|
ignoreUndefined |
Whether to ignore undefined values in paths |
|
ignoreNull |
Whether to ignore null values in paths |
A proxy object with path access capabilities
# static parsePath(path)
Parses a path string into individual components
.Parses a path string into individual components
Parameters:
Name | Type | Description |
---|---|---|
path |
The path string to parse (e.g., "user.address.city") |
Error if the path is invalid
An array of path components