Comment

Comment by cygx

Yup. The proper way to emulate new is

    Foo.call(Object.create(Foo.prototype))
parent cygx 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton