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

    Example

    const is2 = is(2);

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

    Returns

    Curried function with expected in context.

    Type Parameters

    • Expected

    Parameters

    • expected: Expected

    Returns (<Actual>(actual: Expected | Actual) => actual is Expected)

      • <Actual>(actual: Expected | Actual): actual is Expected
      • Type Parameters

        • Actual

        Parameters

        • actual: Expected | Actual

        Returns actual is Expected