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

  • Will be removed with PF1 vNEXT
  • Parameters

    • original: object

      An object comparing data against which to compare

    • other: object

      An object containing potentially different data

    • Optionaloptions: { inner?: boolean; keepLength?: boolean } = {}

      Additional options which configure the diff operation

      • Optionalinner?: boolean

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

      • OptionalkeepLength?: 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