Skip to content

cloneWithNonEnumerableProperties<T>

Clones an object, including non-enumerable properties.

Import:

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

Signature:

function cloneWithNonEnumerableProperties(obj: T): T

Parameters:

ParameterTypeDescription
objTThe object to clone.

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