I wonder why we cannot have toMethod, in due course. You had suggested the ES6 signature with a second parameter, with default value:

  Function.prototype.toMethod(homeObject, methodName = this.name);

With a function.name spec'ed in ES6, that might be enough to address the concerns raised by @wycats (among other folks).

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to