Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
mitchi
· 11y ago · 0 comments
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.
Comments
No comments yet.
Better HN