Use for…of instead of manual iteration.

Unfortunately, UglifyJS can’t handle for…of, though.