Function eqAny

  • Checks equality between two values of any type using strict equality.

    Parameters

    • a: unknown

      The first value to compare

    Returns ((b) => boolean)

    A function that takes another value and returns whether it is strictly equal to the first value

      • (b): boolean
      • Parameters

        • b: unknown

        Returns boolean

    Example

    eqAny('hello')('hello') // true
    eqAny('hello')('Hi') // false
    eqAny('')(2) // false

Generated using TypeDoc