Skip to content

Instantly share code, notes, and snippets.

@batogov
batogov / object-create-polyfill.js
Last active July 15, 2023 20:43
Simplest polyfill for Object.create()
if (!Object.create) {
Object.create = function(o) {
function F() {}
F.prototype = o;
return new F();
};
}