Return to Snippet

Revision: 53245
at November 17, 2011 05:10 by luizlopes

Initial Code
if (typeof Object.create !== 'function') {
    Object.create = function (o) {
        function F() {}
        F.prototype = o;
        return new F();
newObject = Object.create(oldObject);

Initial URL

Initial Description
an operator that implements true prototypal Object inheritance in JavaScript

Initial Title
JavaScript Object Prototypal inheritance

Initial Tags
javascript, object

Initial Language