( value: Record<string, unknown>, key: string, next: unknown, )
| 162 | /** Rebuild an object with `key` set to `next` — never mutates the input, never |
| 163 | * produces `undefined` values. */ |
| 164 | export 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. */ |
| 171 | export const removeProperty = ( |
no outgoing calls
no test coverage detected