What about:

        foo({ bar: 5 })

        function foo ({ baz, bak, bar }) {
                console.log(bar)
        }

Or is there anything else you are considering or something I am missing.

Regards

> On Jul 12, 2015, at 6:47 AM, Benjamin Gruenbaum <[email protected]> wrote:
> 
> Hey, I wasn't able to find information about the current status of a named 
> parameters propsosal:
> 
>     // as in:
>     foo(bar = 5); // logs 5
> 
>     function foo(baz, bak, bar){
>          console.log(bar);
>     }
> 
> Is this being considered? Was it decided for/against? Anyone working on it?
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss

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

Reply via email to