Function mergeItems

  • Recursively merge two array by preserving the reference.

    Parameters

    • array: unknown[]

      An array to put the new item into.

    • source: unknown[]

      An array to pull the new item from.

    • Optional cleanup: boolean

      Remove the item that is not exist in the source array.

    Returns void

Generated using TypeDoc