Re:A concise JavaScript tutorial for beginners
by mitchi on Friday March 13, 2015 @04:36PM
(#9199874)
7 is with the instanceof pattern. You add an if statement at the beginning of the function. If "this" is global you return a new object.
[ Parent
| on HN ]
There are no comments on this comment yet.