You could say `var variables = this.variables.slice();` and omit the next loop.