Function objDiff

  • Returns an array of identical keys with different values across two objects

    Example

    objDiff({ foo: 1, bar: 2 }, { foo: true, bar: 2 });
    => ['foo']

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

    Type Parameters

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

    • Key extends string | number | symbol

    Parameters

    • a: Type

      First object

    • b: Type

      Second object

    Returns false | Key[]

Generated using TypeDoc