SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function removeEqualValuesLayered

    • Removes from update any values that are identical in a LAYERED original.

      The layers are ordered nearest-first: for each leaf the first layer that defines it (undefined is 'not defined', null is a value) is the one it is compared against. This is removeEqualValues against the deep merge of the layers, without materializing that merge — which matters when the layers hold resolved model objects rather than plain json.

      Parameters

      • update: any

        The object to update.

      • layers: readonly any[]

        The original values to compare against, nearest layer first. Nullish layers are ignored.

      • isEqual: (update: any, original: any) => boolean = DefaultEqualityCompare

        A function to compare values for equality. Defaults to strict equality.

      Returns boolean

      true when nothing of update survived.

      This mutates the update object.