Hex Core JS
    Preparing search index...

    Function getArrayDiff

    • Returns an object with the keys added and removed which each contain an array. The added array contains elements that were added in the final array. The removed array contains elements that were removed from the initial array.

      Type Parameters

      • T

      Parameters

      • initial: T[]

        The initial version of the array.

      • final: T[]

        The final version of the array.

      Returns { added: T[]; removed: T[] }