function invocation with just commas for explicit undefined optional arguments in the middle

Boris Zbarsky bzbarsky at mit.edu
Fri Nov 1 15:22:59 UTC 2019


On 11/1/19 5:10 AM, Cyril Auburtin wrote:
> yes true, it's even more annoying with eslint, you have to configure it 
> with https://eslint.org/docs/rules/no-unused-vars#argsignorepattern for 
> example

That's talking about function _declarations_, whereas the original 
proposal in this thread is about function _invocations_.

> To be fair I considered this case mostly for `Array.from({length: n}, 
> (,i) => i)`

Right, that's a function declaration, not invocation.

-Boris


More information about the es-discuss mailing list