M
M
Malik2021-05-04 15:34:20
JavaScript
Malik, 2021-05-04 15:34:20

How to compare two objects and return the discrepancies in a new typescript object?

60913e4775a72866169642.png
60913e53667ed356223021.png
I need to check for the identity of the key and value of these two objects, if the data does not match, return them to a separate object,
I need it to check only for these fields

"name": "Jeans",
"picture": "https://www.google.com",
"description": "text",
"quantity": 123,
"price": 123,
"sale": 123,
"afterSale": 4000,

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question