Enumerate all the properties of a hash object in javascript without using for in?

I just learned from this article by on github about javascript V8 engine code optimization

For-in statements can prevent the entire function from being optimized in a few cases.

One of the cases is when object is hash object, e.g:

var obj = {
    name: 'fdsfds',
    email: 'fdsfd@fds.com',
    password: 'fjdlsjfkdslfjds'
};

It is about one page reading in above link, chapter 5. For-in.

I wonder if there is any way to loop through a hash object without using

for(var key in hashTable)

for-in loop?

I don't really know it's a good way of doing or not but you can do something like bellow

Object.keys.forEach(function(key){
    //do your task
});