Comment

Comment by Cushman

Here's the part I don't get: `Object.create`, as it's defined there, is a long-winded, roundabout way of saying

    {__proto__: o}
People seem to think that this is functionality that was lacking from JavaScript; many of these same people have some inexplicable distaste for the (non-standard) `__proto__` property. What gives?

(Okay, technically it's {__proto__: o, constructor: function F() {}}...)

parent Cushman 15 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton