Function safeAccess
- safe
Access (data, accessor, defaultValue?): any Parameters
- data: object
An object to access entry data.
- accessor: string
A string describing the entries to access with keys separated by
.
. Optional
defaultValue: any(Optional) A default value to return if an entry for accessor is not found.
Returns any
The data object.
- data: object
Provides a way to safely access an objects data / entries given an accessor string which describes the entries to walk. To access deeper entries into the object format the accessor string with
.
between entries to walk.