Foo.call(Object.create(Foo.prototype))
I wonder if any linters out there warn when they see something like:
something = SomeCapitalizedFunction()
I wonder if any linters out there warn when they see something like:
Because forgetting to use 'new' is really the only thing I could think of that makes this pattern dangerous.