• Performs a SameValueZero comparison between two values to determine if they are equivalent.

    Parameters

    • value: unknown
    • other: unknown

    Returns boolean

    Since

    1.0.0

    Example

    const object = { a: 1 };
    const other = { a: 1 };

    eq(object, object);
    // => true

    eq(object, other);
    // => false

    Example

    eq('a', 'a');
    // => true

    Example

    eq('a', Object('a'));
    // => false

    Example

    eq(NaN, NaN);
    // => true