withBreak blocks
李白|字一日
calidion at gmail.com
Sun Feb 18 00:44:23 UTC 2018
you can simply put these value handler pairs into an array.
const a = [[0, function(){}], [1, function(){}]];
let i = 0;
while (a[i++][0]) {
a[i - 1][1]()
break;
}
2018-02-18 5:58 GMT+08:00 sagiv ben giat <sagiv.bengiat at gmail.com>:
> > What kind of argument is that? ESlint isn't a JavaScript runtime, it
> is fully configurable, and I don't see how it's at all relevant.
>
> I know ESLint can be configured, it was just an example for how `label`
> statements are considered as poor design of code.
>
>
>
> *Sagiv B.G*
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180218/f0a63e31/attachment-0001.html>
More information about the es-discuss
mailing list