Object or Array
the mutation callback, passing the value, key & oa and returns a new value.
Optional
key: stringOptional
oa: object | any[]Optional
agreement: anyan agreement filter as in z.isAgree
. If it is true, value is mutated, otherwise it's left intact. Note: isAgree allows "undefined" as a truthy filter value.
the mutated object or array
Mutates the
Value
for each of theKeys
of a given Object or ArrayExample: