Function eq

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

    Type Parameters

    • T

    Parameters

    • a: T

      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: T

        Returns boolean

    Example

    eq(5)(5) // true
    eq(5)(6) // false
    eq({})({}) // false

Generated using TypeDoc