Function replaceItems

  • Recursively replace the item of an array with item from another 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.

    Returns void

Generated using TypeDoc