updateListField
Runs a list helper on the array held in
field
. A missing list counts as empty, the object keeps its reference when
the list did not change.
Import
import { updateListField } from "@hyper-fetch/core"
Source
Package
Parameters
updateListField(data: unknown, field: PropertyKey, update: (list: unknown[]) => unknown[])
Parameters
| Name | Type | Description |
|---|---|---|
| data | | |
| field | | |
| update | |
Returns
Item

