According to Erik Qualman, language is always evolving. Although he was referring to natural language, the same applies to programming languages to...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for sharing and see how JS evolves
Nice. And interesting choice of the books by the way :-)
.flat(Infinity), the numeric separator and your fist name were my favourite and key takeways from this article. Cheers!
.flat(Infinity) is definitely a helpful one ☺️ thanks for reading!
Thorough article. Did not know about the
flat
method's argument earlier.I wonder about the babel support though.
Thanks! Good point about babel support. Looks like some people have had an issue with .flat() using Babel and have implemented core.js polyfills to solve the problem.
Nice! I forgot about the
pad
methods. Very useful.I use most of these all the time, but I had missed the Nullish Coalescing ?? operator. Very useful article for picking up the practical changes in JavaScript over the past few years.
Thanks for sharing, they're very useful. Only knew a few 😁
Glad you found it useful ☺️
Amazing post @ppiippaa 👏👏
Thanks so much ☺️
Thanks for sharing;
I used almost all of them, except Numeric Separator and fromEntries
This is good, very useful Pippa
Thank you for sharing. Maybe it´s worth to note, that not all features are supported by all browsers, which might break your site, if you do not use any polyfills.
You can check browser compatibility on caniuse.com/. From my personal experience (not verified!) you are relatively save to use only features, that have been introduced 3-4 years back in time.
Very good point, that's definitely something to bear in mind with newer features. I'll be sure to add the caniuse link in the article, so thanks for pointing that out :)
nice one :)
could you please add one comma in code?
e.g. comma after
2
is missing.from
const nestedArray = [1, 2 [3, 4, [5, [6, 7]]]];
to
const nestedArray = [1, 2, [3, 4, [5, [6, 7]]]];
Thanks for pointing that out, I'll go and edit it now :)
Very informative. Some of these are new to me.
Glad you found it helpful!
I love💗 the Numeric Separator(_)
Thanks for listing the nice features and also a nice refresher.
Keep writing @ppiippaa
It definitely makes things easier to read 🤣Thanks for reading!
refreshed the concepts again thanks for sharing
Glad you found it helpful, thanks for reading ☺️
Very nice list! I would add structuredClone as one of my top picks. It has solved the very old problem of copying objects in JS without risking mutations!
Thanks ☺️ I hadn't heard of structuredClone before so I will definitely have to look into it as that sounds very useful!