set¶
Hook for setting a key based on a key path which is a list with keys and numbers for indexes in a list.
Inputs¶
Name | Type | Default | Required | Description |
---|---|---|---|---|
path | Any | True | A list or string with a separator for the path to the value you want to update with strings for keys and ints for indexes in the list. | |
value | Any | True | The value to update the key with. | |
sep | str | / | True | For string paths, a separator for key path. |
Arguments¶
Position | Argument | Type |
---|---|---|
1 | path | Any |
2 | value | Any |
Returns¶
None