Understanding Crockford’s Object.create shim
if (typeof Object.create !== ‘function’) { Object.create = function (o) { function F() {} F.prototype = o; return new F(); }; } var oldObject={prop:’Property_one’ }; // An object var newObject = Object.create(oldObject); // Another object In the above example we’ve created a new object newObject using create method which is a member function of Object … Read more