Andrea Giammarchi wrote:
Is it very useful because you wrote for instead of while ?```javascript while (m = re.exec(str)) console.log(m[0]) ; ```
It is, for two reasons: 1. in JS only for can have a let or var binding in the head.2. the utility extends to all for-of variations: array comprehensions, generator expresisons.
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

