vis-util
    Preparing search index...

    Function copyAndExtendArray

    Used to extend an array and copy it. This is used to propagate paths recursively.

    First part.

    The value to be aadded into the array.

    A new array with all items from arr and newValue (which is last).

    • Type Parameters

      • T

      Parameters

      • arr: readonly T[]
      • newValue: T

      Returns T[]

    • Type Parameters

      • A
      • V

      Parameters

      • arr: readonly A[]
      • newValue: V

      Returns (A | V)[]