(collection: C, keyPath: KeyPath<K>, value: unknown)
| 10 | * work with plain Objects and Arrays. |
| 11 | */ |
| 12 | export function setIn< |
| 13 | K extends PropertyKey, |
| 14 | V, |
| 15 | TProps extends object, |
| 16 | C extends PossibleCollection<K, V, TProps>, |
| 17 | >(collection: C, keyPath: KeyPath<K>, value: unknown): C { |
| 18 | return updateIn(collection, keyPath, NOT_SET, () => value); |
| 19 | } |
nothing calls this directly
no test coverage detected