Skip to content

assignWithNonEnumerableProperties

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

Import:

import { assignWithNonEnumerableProperties } from '@mnaoumov/typescript-lib/object-utils';

Signature:

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

Parameters:

Parameter Type Description
target object The target object to assign properties to.
sources object[] The source objects to assign properties from.

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