MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / setProperty

Function setProperty

packages/react/src/components/json-schema-form.tsx:164–168  ·  view source on GitHub ↗
(
  value: Record<string, unknown>,
  key: string,
  next: unknown,
)

Source from the content-addressed store, hash-verified

162/** Rebuild an object with `key` set to `next` — never mutates the input, never
163 * produces `undefined` values. */
164export const setProperty = (
165 value: Record<string, unknown>,
166 key: string,
167 next: unknown,
168): Record<string, unknown> => ({ ...value, [key]: next });
169
170/** Rebuild an object with `key` deleted. */
171export const removeProperty = (

Callers 3

applyChildFunction · 0.85
ObjectFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected