implement for-in with ES6 for-of loop