Skip to content

assignWithNonEnumerableProperties

Assigns properties from one or more source objects to a target object, including non-enumerable properties.

Import:

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

Signature:

function assignWithNonEnumerableProperties(target: object, sources: object[]): object

Parameters:

ParameterTypeDescription
targetobjectThe target object to assign properties to.
sourcesobject[]The source objects to assign properties from.

Returns: object — The target object with the assigned properties.