Skip to main content
Version: v9.0.0

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"

Parameters​

updateListField(data: unknown, field: PropertyKey, update: (list: unknown[]) => unknown[])
Parameters
NameTypeDescription
data
unknown
field
PropertyKey
update
(list: unknown[]) => unknown[]

Returns​

Item