Array.prototype.sort( callbackfn [ , thisArg ] )

Michaël Rouges michael.rouges at gmail.com
Tue Nov 12 03:34:02 UTC 2019


Hi all,

Is there a reason to not have a `thisArg ` for the `Array.prototype.sort()`
callback?

Actually, it enforces to bind the context or to have nested functions, each
one creating a new function where it isn't strictly necessary.

Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20191112/83b55b3f/attachment.html>


More information about the es-discuss mailing list