# Function: copyArray() (/jsdoc/pixi-vn-live2d/core/functions/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 [#type-parameters]

### FromKey [#fromkey]

`FromKey` *extends* `string` | `number` | `symbol`

### From [#from]

`From` *extends* `Partial`\<`Record`\<`FromKey`, `any`\[]>>

### ToKey [#tokey]

`ToKey` *extends* `string` | `number` | `symbol`

### To [#to]

`To` *extends* `Partial`\<`Record`\<`ToKey`, `any`\[]>>

## Parameters [#parameters]

### type [#type]

`string`

Type expected to match `typeof` on the items.

### from [#from-1]

`From`

Source object.

### to [#to-1]

`To`

Destination object.

### fromKey [#fromkey-1]

`FromKey`

Key of the array property in source object.

### toKey [#tokey-1]

`ToKey`

Key of the array property in destination object.

## Returns [#returns]

`void`
