Open domenic opened 10 years ago
E.g. Promise.prototype.catch delegates directly to this.then, or Array.prototype.map delegates directly to this.constructor, which allows subclasses to inherit behavior that "does the right thing."
Promise.prototype.catch
this.then
Array.prototype.map
this.constructor
E.g.
Promise.prototype.catch
delegates directly tothis.then
, orArray.prototype.map
delegates directly tothis.constructor
, which allows subclasses to inherit behavior that "does the right thing."