Home > rc-js-util > arrayCopyInto
Make an array contain the same items as another.
Signature:
export declare function arrayCopyInto<TItem>(from: ArrayLike<TItem>, to: TItem[], startIndex?: number, length?: number): void;
Parameter | Type | Description |
---|---|---|
from | ArrayLike<TItem> | The array to copy from. |
to | TItem[] | The array to copy into and resize. |
startIndex | number | (Optional) The index to start with in the from array. |
length | number | (Optional) The index to end with in the from array. |
Returns:
void
See arrayCopyInto().