3 ms·
I agree with most of Crockford's advice here and in general about JS, but the "new" issue he mentioned is not an issue to me. It's pretty trivial to have a con
by stephenr 15y ago
I agree with most of Crockford's advice here and in general about JS, but the "new" issue he mentioned is not an issue to me.
It's pretty trivial to have a constructor function that can also identify if it's called without the new operator and then in fact return a new instance anyway.