Function copyOver

  • Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.

    Type Parameters

    • T extends ArrayLike<any>

      The destination array.

    Parameters

    • src: ArrayLike<ArrayValue<T>>

      The source array.

    • dest: T

      The destination array.

    • srcIndex: number = 0

      The start position in the source array.

    • destIndex: number = 0

      The start position in the destination array.

    • n: number = src.length

      The number of elements to copy.

    Returns T

    The destination array.