• Curried wrapper for Object.is. Given and expected value and an actual value, returns true if those values are equal, or false if not.


    const is2 = is(2);

    is2(2); // true
    is2(8); // false

    Type Parameters

    • Expected


    • expected: Expected

    Returns ((actual) => actual is Expected)

    Curried function with expected in context.

      • (actual): actual is Expected
      • Parameters

        • actual: unknown

        Returns actual is Expected