Function: defineOwnEnumerableDataProperties()
function defineOwnEnumerableDataProperties(
target: object,
source: object
): void;
Defined in: shared/utils/objectSafety.ts:64
Defines enumerable own data properties from a source object onto a target.
Parametersโ
targetโ
object
sourceโ
object
Returnsโ
void
Remarksโ
Accessor properties are intentionally skipped so copying does not invoke
user-defined getters. Properties are defined with standard writable,
enumerable, and configurable descriptors so special keys such as __proto__
remain own data properties instead of mutating prototypes.