# Function: createExportableElement() (/jsdoc/pixi-vn/index/functions/createExportableElement)



\> **createExportableElement**\<`T`>(`element`): `T`

Defined in: [src/utils/export-utility.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/utils/export-utility.ts#L10)

This function is used to create a deep copy of the element

Type Parameters [#type-parameters]

T [#t]

`T`

Parameters [#parameters]

element [#element]

`T`

The element to be copied

Returns [#returns]

`T`

The copied element

Throws [#throws]

when the element is not JSON serializable (e.g. contains functions or class instances).
