<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [clone](./x-components.clone.md)

## clone() function

Deeply clones an object or an array.

**Signature:**

```typescript
export declare function clone<Something>(something: Something): Something;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  something | Something | The object to clone. |

**Returns:**

Something

A deep clone of the provided value.

