How to compare objects in JavaScript (ES6)

preview_player
Показать описание
Given two matrices (array of arrays, nested any level deep), write a function that will return true if the contents are the same, and false if not.

Since JavaScript objects cannot be compared using the == operator, unless we are checking if they are actually the exact same object in memory, we need to write our own function to check if the contents of an object are the same.

Please let me know if you have any questions, if I've made any mistakes, or if you have a better solution. Thanks for watching!

Рекомендации по теме
Комментарии
Автор

very nice video. subscribed.. please upload more such videos on javascript

ritsk
Автор

Hi chirpingmermaid, you have fantastic videos. You would grow huge if you could be more consistent with your videos. Just found your channel and I'm in love with it. Keep it coming!

mekanarazmedov
Автор

Please come back and make more videos? Pretty please?

flattedfifth
visit shbcf.ru