@carbon/charts
    Preparing search index...

    Function arrayDifferences

    • Compares two arrays to return the difference between two arrays' items.

      Parameters

      • oldArray: any[]

        the array to check for missing items

      • newArray: any[]

        the array to check for newly added items

      Returns { added: any[]; missing: any[] }

      An object containing items missing (existing in oldArray but not newArray) and items added (existing in newArray but not in oldArray). Object is of the form { missing: [], added: [] }