Šime Vidas recently tweeted about the object method shorthand definition. The tweet described that shorthand method defintions are not constructable and can not be used with the
You can’t invoke an object method as a constructor if you’ve used the shorthand syntax.
I’m not using the
new keyword very often these days but this fact surprised me. So I started digging the EcmaScript spec to figure out what differences arrow functions and the shorthand have in comparison to…
Read the entire article at the source link…
We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.