A quick but hard-to-google question:
var child = Object.create(parent.prototype);
var child = Object(parent.prototype);
Are they identical?
edit:
My question was raised by this two examples of inheritPrototype functions used to implement the Parasitic Combination Inheritance Pattern.
function inheritPrototype(childObject, parentObject) {
var copyOfParent = Object.create(parentObject.prototype);
copyOfParent.constructor = childObject;
childObject.prototype = copyOfParent;
}
http://javascriptissexy.com/oop-in-javascript-what-you-need-to-know/
function inheritPrototype(subType, superType){
var prototype = object(superType.prototype);
prototype.constructor = subType;
subType.prototype = prototype;
}
"Parasitic Combination Inheritance" in Professional JavaScript for Web Developers