• Deeply difference an object against some other, returning the update keys and values.

    Parameters

    • original: object

      An object comparing data against which to compare

    • other: object

      An object containing potentially different data

    • Optional options: {
          inner: boolean;
          deletionKeys: boolean;
          _d: number;
      } = {}

      Additional options which configure the diff operation

      • inner: boolean

        Only recognize differences in other for keys which also exist in original

      • deletionKeys: boolean

        Apply special logic to deletion keys. They will only be kept if the original object has a corresponding key that could be deleted.

      • _d: number

        An internal depth tracker

    Returns object

    An object of the data in other which differs from that in original