Test whether two values are equal.

If you want to validate covers relationship, call smaller first and then larger.

Otherwise you wanna non equals validator, combine with error.

  • Parameters

    • title: string

      Title of error message when different

    • exception: (key: string) => boolean = ...

      Exception filter for ignoring some keys

    Returns <T>(x: T) => (y: T) => void

    Currying function