Skip to content

cloneWithNonEnumerableProperties<T>

Clones an object, including non-enumerable properties.

Import:

import { cloneWithNonEnumerableProperties } from 'obsidian-dev-utils/object-utils';

Signature:

function cloneWithNonEnumerableProperties($object: T): T

Parameters:

ParameterTypeDescription
$objectT

Returns: T — A new object with the same properties as the original object, including non-enumerable properties.