# Function: createExportableElement() (/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/5bb5bb1f92e38998ea2f477b600168d8da3ece19/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).
