( updater: Updater<TInput, TOutput>, input: TInput, )
| 19 | * @private |
| 20 | */ |
| 21 | export function functionalUpdate<TInput, TOutput = TInput>( |
| 22 | updater: Updater<TInput, TOutput>, |
| 23 | input: TInput, |
| 24 | ): TOutput { |
| 25 | return typeof updater === 'function' |
| 26 | ? (updater as UpdaterFn<TInput, TOutput>)(input) |
| 27 | : updater |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Get a value from an object using a path, including dot notation. |
no outgoing calls
no test coverage detected