3 ms·
const length = (string) => (string.length) It is unnecessary to adopt a naming convention which implies a scope within the context of "names" when the method i
by plausibilities 8y ago
const length = (string) => (string.length)
It is unnecessary to adopt a naming convention which implies a scope within the context of "names" when the method is compatible with all strings.
- vorticalbox 8y agoIt was more about the lack of es6 syntax but yes 100% agree
- jadjoubran 8y agoES6 is explained in detail, with implicit return in Chapter 5 (or 6). Developers still need to know the function syntax for when they look up documentation online Cheers!