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
Thanks for these tricks, have a great day!
Thanks for these useful tips, Dom.
Object destructiring is the best thing since sliced bread. Love a bit of `let { prop1, prop2 } = obj`
Great content !
Useful video, thanks.
Thanks for great tips
Thank you, this was really usefull!
Thank U So Much dCode 👍
Welcome 👍
I want those 9 minutes back
Thanks mate !
very helpful thank you
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.
Null coalescing instead of `||`
The self-invoking functions are called IIFEs I think
Anonymous function too
It is also possible to use the new Set trick with spreading as in const noDuplicates = [...new Set(duplicates)];
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.
❤️❤️❤️❤️
Hi bro
How's it going
sir plz make react tutorial
👍❤️
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?