Our style guide says not to use for loops for that and build the arrays manually. Though in this case the generated javascript is nearly identical... @molily ?