Комментарии:
Excellent explanation! 🔥
ОтветитьAny difference between the standard JavaScript typeof and your helper function typeOf?
ОтветитьIs it typeOf or typeof?
ОтветитьGold content thanks for great video
ОтветитьPretty good tutorial. But I guess one more case we can check where the second object i.e the target have some extra keys than the source.
source:- {a:"name", b: "myName"}
target:- {a:"name", b: "myName", c: "anotherName"}
Currently shallowCompare(source, target) will give true which isn't correct. You might agree to it
We can fix that by adding a condition to check the keys length
if (typeOf(source) === "object")
{
if (Object.keys(source).length !== Object.keys(target).length) {
return false;
}
return Object.keys(source).every((key) => source[key] === target[key]);
}
Great video. Very informative. Thank you for sharing it.
ОтветитьMesej yang jelas, struktur yang jelas, mudah difahami, terima kasih
ОтветитьEndlich ein komplettes Tutorial, sehr nuetzlich und schoen erklaert! Danke!!!
ОтветитьI love how you take your time to explain things.. clear and precise diction.. !
ОтветитьThanks for the great work!
ОтветитьGreat video and excellent explanation, thank you for sharing!
ОтветитьWhat if the sequence of key pair value inside object is different?For eg :- How we can compare this
{name : 'xyz', age :3} and {age:3, name:'xyz'}
will the function deepclone you made will work for this.?
I find this video very interesting. Thank you !
Ответитьit would be great if there is a playlist of similar videos at this level of concept. I really enjoyed this one. Thank you.
ОтветитьGreat teaching, please keep on teaching more !
ОтветитьNice videos as always. By the way you're pronouncing "target" incorrectly. You're saying "tarjet" instead of "target".
ОтветитьI found your channel two days ago and I'm in love with your teaching style. You are awesome, please don't stop teaching.
I'm really having hard time with authentication in node js(sessons, jwt, oauth, custom authentication), Any chance to learn it from you?
great tutorial as usual
ОтветитьAmazing tutorial! Thanks a bunch! 🙏
ОтветитьGreat work, learnt something today :)
ОтветитьSuggestion for the next video: deep cloning; I don't like using Lodash, but the need for cloning is very common for a large number of projects 😬
Ответить