for statement with index and value

Domenic Denicola d at domenic.me
Tue Jul 14 13:27:43 UTC 2015


From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Matthew Robb

> Why not use the new meta syntax?

This is pretty ingenious. If I thought this was a real problem that needed solving, I'd definitely go this route. (But, I think that using .entries() and destructuring is fine, and there's no need to add new syntax to save people a few characters.)



More information about the es-discuss mailing list