I like this proposal. Specially for `while` loops.

When I want to iterate all matches of a global regex, I always think the 
variable declaration at the top seems ugly

```js
let match;
while (match = regex.exec(string)) {
  // ...
}
```

This looks better:

```js
while (let match = regex.exec(string)) {
  // ...
}
```
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to