Open panzerdp opened 4 years ago
Comment written by Šime Vidas on 07/13/2016 01:46:30
Small correction: The includes
method *cannot* determine the existence of holes, since it doesn’t differentiate between holes and elements containing the undefined
value.
['Foo',,'Bar'].includes(undefined) // true
['Foo',undefined,'Bar'].includes(undefined) // true
Comment written by Dmitri Pavlutin on 07/13/2016 05:05:26
Seems reasonable. Post updated. Thanks!
Comment written by Gjermund Bjaanes on 07/20/2016 05:32:11
Very good, in-depth article! Small but good updates to the standard here, for sure :)
Comment written by Dmitri Pavlutin on 07/20/2016 05:35:23
Thank you Gjermund. I'm glad you like it!
Comment written by DChang on 07/25/2016 01:45:12
i find it strange that -5 ** 2 resolves to -25 instead of +25. any insight into why that decision was made?
great writing/reads. i've been enjoying them :)
Comment written by Dmitri Pavlutin on 07/25/2016 06:32:07
Hey DChang,
It may be strange from the first look, but generally it's ok. The unary minus operator has less priority than the exponentiation operator.
Think of it as a math expression. It is expected 5**2 - 3**2 = 25 - 9 = 16, but not 5**2 - 3**2= 25 + 9 = 34.
Thanks! I'm glad you like the writings.
Comment written by Bertalan Miklós on 08/11/2016 19:37:02
Great article! I just found your blog and I really like the topics you cover.
Comment written by Dmitri Pavlutin on 08/12/2016 06:29:48
I'm glad you like it Bertalan!
Your event loop explanation in this article is awesome, I enjoyed reading it 😋.
Written on 07/09/2016 11:59:23
URL: https://dmitripavlutin.com/must-know-details-about-es2016-features/