it's important to now restore the constructor attribute
- Publisher: Packt Publishing
- Released: March 2015
Define a "class": First create the constructor function, then set the prototype with Object.create (which seems to overwrite the constructor), then restore the constructor.
Share this highlighthttp://www.safaribooksonline.com/a/functional-programming-in/2989727/