createArray
createArray(
path):object
Defined in: actions/helpers.ts:176
Action builders for an array at path: add, remove, clear and set.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path | string[] |
Returns
Section titled “Returns”object
add: (
item) =>Action
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item | any |
Returns
Section titled “Returns”clear: () =>
Action
Returns
Section titled “Returns”remove
Section titled “remove”remove: (
item) =>Action
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item | any |
Returns
Section titled “Returns”set: (
items) =>Action
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
items | any[] |