Named Paramters

Bucaran jbucaran at me.com
Sat Jul 11 21:56:37 UTC 2015


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 <benjamingr at gmail.com> 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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss



More information about the es-discuss mailing list