Function objEqual

  • Compares two objects for equality

    Example

    objEqual({ foo: 1, bar: 2 }, { foo: 1, bar: 2 });
    => true

    objEqual({ foo: 1, bar: 2 }, { foo: 1, bar: false });
    => false

    Type Parameters

    • Type extends Record<string | number | symbol, any>

    Parameters

    • a: Type

      First object

    • b: Type

      Second object

    Returns boolean

Generated using TypeDoc