Use for-of instead of for-in

I assume that it was intended to be written like this.