3 ms·
So.... How would a lack of destructuring avoid this? You would still have two undefined variables, plus a bit more typing.
by woah 11y ago
So.... How would a lack of destructuring avoid this? You would still have two undefined variables, plus a bit more typing.
- z3t4 11y agoIt would probably have looked like this: var email = article.email, at = email.indexOf("@"), ident = email.substr(0, at), domain = email.substring(at + 1, email.lengt);