Is there a recognised idiom to get just the own-object in JavaScript? i.e. I would like to chop off the prototype chain for an object, in IE10 and above.

```
function O() {
  this.foo = 'foo';
}
O.prototype = { bar: 'bar' }

var o = new O();

for(var v in o) { 
  console.log(v); // foo bar
}

// ...but I just want an object representing the own properties and their values

o.__proto__ = null; // But I need this to work in IE10
for(var v in o) { 
  console.log(v); // foo
}

```