( state: Record<string, any>, update: Record<string, any>, )
| 9 | } |
| 10 | |
| 11 | export function updateState( |
| 12 | state: Record<string, any>, |
| 13 | update: Record<string, any>, |
| 14 | ): void { |
| 15 | Object.keys(state).forEach((key) => { |
| 16 | state[key] = update[key] |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | // Helper function for cloning deep objects where |
| 21 | // the level and key is provided to the callback function. |
no outgoing calls
no test coverage detected
searching dependent graphs…