Use for-of instead of for-in

I assume that it was intended to be written like this.
Merge pull request #10 from vjeux/patch-1

Use for-of instead of for-in