• Copies state with patches recursively. Keys with undefined or null values in patch are deleted.

    Type Parameters

    Parameters

    • prev: Readonly<S | Patch<S>>

      original state

    • curr: Readonly<Patch<S>>

      patches to merge

    Returns Readonly<S | Patch<S>>

    a new patched state

Generated using TypeDoc