coreFunctions
Function: copyArray()
> copyArray<FromKey, From, ToKey, To>(type, from, to, fromKey, toKey): void
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:4857
Copies an array at key, filtering the items that match the type.
Type Parameters
FromKey
FromKey extends string | number | symbol
From
From extends Partial<Record<FromKey, any[]>>
ToKey
ToKey extends string | number | symbol
To
To extends Partial<Record<ToKey, any[]>>
Parameters
type
string
Type expected to match typeof on the items.
from
From
Source object.
to
To
Destination object.
fromKey
FromKey
Key of the array property in source object.
toKey
ToKey
Key of the array property in destination object.
Returns
void