3 ms·
I like this thorough explanation. In my code, I mostly avoid this issue by relying on jshint's "newcap" option to detect when a constructor function is called
by facorreia 12y ago
I like this thorough explanation.
In my code, I mostly avoid this issue by relying on jshint's "newcap" option to detect when a constructor function is called without the new keyword.