This sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null.
Generally considered the proper way to set the prototype of an object, vs. the more controversial Object.prototype.proto property.
var obj = Object.setPrototypeOf({}, null);
// Only works in Chrome and FireFox, does not work in IE:
Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) {
obj.__proto__ = proto;
return obj;
}