4 ms·
Yes, but it is typically frowned upon. Here's and MDN on it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label https://develop
by niix 11y ago
Yes, but it is typically frowned upon. Here's and MDN on it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- timdorr 11y agoThough in this case, it's a crazy performance hack from Vyacheslav Egorov. Check out the graph: https://cloud.githubusercontent.com/assets/934293/6550014/d3a86174-c5fc-11e4-8334-b2e2b0d38fad.png https://cloud.githubusercontent.com/assets/934293/6550014/d3...
- mraleph 11y agoI would not call it a performance hack, it's just a readable way to write an algorithm - most important part of my original suggestion was actually to use x.charCodeAt(i) instead of x[i]