11 lines
213 B
JavaScript
11 lines
213 B
JavaScript
// `new Object()` makes an empty object. Called without `new`, it does the same
|
|
function Object() {
|
|
return {};
|
|
}
|
|
|
|
Object.prototype = {};
|
|
|
|
Object.create = function (proto) {
|
|
return { __proto__: proto };
|
|
};
|