Skip to content
Advertisement

Difference between two Objects – reduce

I’ve 2 Objects with data that is repeated but also varies. How to compare them and get the differences?

JavaScript

I’ve to use .reduce.

My work:

JavaScript

but the output is without surname: "kowalski". Expected output:

JavaScript

Advertisement

Answer

Please use this code

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement