deepSet

Function

Deep set function. Like Ember.set, but smarter as it will create the path

  • deepSet(target: Record<stringany>, path: string, value: any) : void

Parameters

Parameter Type Default Notes
target Required Record<stringany>

Object we want to set the property on

path Required string

Dotted path to the property we want to set

value Optional any {}

Value we want to assign to the property

Returns

void

Function defined in common/src/objects/deep-set.ts:9