cloneWithNonEnumerableProperties<T>
Clones an object, including non-enumerable properties.
Import:
import { cloneWithNonEnumerableProperties } from 'obsidian-dev-utils/object-utils';Signature:
function cloneWithNonEnumerableProperties(obj: T): TParameters:
| Parameter | Type | Description |
|---|---|---|
obj | T | The object to clone. |
Returns: T — A new object with the same properties as the original object, including non-enumerable properties.