• Enhances fields with methods that manage the initial value.

    Parameters

    • equalityChecker: ((initialValue: any, value: any) => boolean) = isDeepEqual

      The callback that compares initial value and the current value of the field. By default, the deep comparison is used.

        • (initialValue, value): boolean
        • Parameters

          • initialValue: any
          • value: any

          Returns boolean

    Returns PluginInjector<ResetPlugin>