ensureProp
Ensure that an object has a deep property path. This will replace any existing object at the end of the path
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
target Required | Record<stringany> |
Object we want to ensure has some deep property |
|
path Required | string |
Dotted path to the property we want to ensure exists |
Returns
void
Function defined in common/src/objects/ensure-prop.ts:9