@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 570 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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.