You're right, structured clone may be the better alternative if it's supported on the environment users are on, but in many cases people are targetting the browser which this method isn't fully supported on as of right now.
What makes the first example a "must know?" It's interesting but doesn't seem very practical, seems like de-structuring for it's own sake. Much easier and more common to use the (e) instead.
Best channel in youtube
Object destructiring is the best thing since sliced bread. Love a bit of `let { prop1, prop2 } = obj`
Thanks for these tricks, have a great day!
Thanks for these useful tips, Dom.
Great content !
Thanks for great tips
1:06 why don't you just use structuredClone()? Why are you abusing JSON.parse(JSON.stringify()) here?
@@ИванРыженков-к1ф Я знаю, что я супер крутой, спасибо!
The structuredClone() method is not supported by some web browsers as Chrome, Edge... But at lease work in node 17 :)
Thanks to the video and your comment, I learnt two ways 🙌
You're right, structured clone may be the better alternative if it's supported on the environment users are on, but in many cases people are targetting the browser which this method isn't fully supported on as of right now.
very helpful thank you
Thanks mate !
Useful video, thanks.
Thank U So Much dCode 👍
Welcome 👍
Thank you, this was really usefull!
I want those 9 minutes back
It is also possible to use the new Set trick with spreading as in const noDuplicates = [...new Set(duplicates)];
Null coalescing instead of `||`
The self-invoking functions are called IIFEs I think
Anonymous function too
3:18 Use ??, not || here because if the value is zero, false or an empty string you wouldn't want it to fall back to the default.
𝙉𝙞𝙘𝙚 𝙩𝙞𝙥𝙨
very good
❤️❤️❤️❤️
0:05 just use a real function () {} (not an arrow function) here, then you can use the "this" keyword. So you can just say this.className.
sir plz make react tutorial
Hi bro
How's it going
goood!
👍❤️
hello sir, your udemy link is not working
Hey, yes not at the moment but hopefully soon I'll have some more courses up, thanks!
turn to javascript frameworks like react and node js
You're either trolling or don't get the point of dcode's content.
React is a js library and Node js is a runtime environment 😉
What makes the first example a "must know?" It's interesting but doesn't seem very practical, seems like de-structuring for it's own sake. Much easier and more common to use the (e) instead.
Are you really 38?