Deeply difference an object against some other, returning the update keys and values. Unlike foundry.utils.diffObject, this function also deeply compares arrays.

  • Parameters

    • original: object

      An object comparing data against which to compare

    • other: object

      An object containing potentially different data

    • Optionaloptions: {
          inner: undefined | boolean;
          keepLength: undefined | boolean;
      } = {}

      Additional options which configure the diff operation

      • inner: undefined | boolean

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

      • keepLength: undefined | boolean

        Keep array length intact, possibly having to insert empty objects

    Returns object

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