-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When using apply
on two objects, any property that is null on obj1
and a date in obj2
results in the returning value becoming an empty object.
Here is the code that is being run
const obj1 = {
date: null,
name: 'first',
};
const obj2 = {
date: new Date(),
name: 'first',
};
const result = apply(obj1, obj2); // Result is { date: {}, name: 'first' }
Is it by design that the result of the apply is { date: {}, name: 'first' }
?
Metadata
Metadata
Assignees
Labels
No labels