Sign up
Sign in
… else if (!(self instanceof MySubClass)) { Object.setPrototypeOf(self, MySubClass.prototype); // do things with self return self;}
Andrea Giammarchi
Bobby Jack
Follow
--
Share
Need a } just before this line
Bobby has worked as a writer and editor for publications including tech site makeuseof.com and gaming magazine Switch Player. More @ bobbyjack.me
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams