Default values of destructured arguments?

Axel Rauschmayer axel at rauschma.de
Fri Nov 28 07:48:54 PST 2014


Already supported: http://google.github.io/traceur-compiler/demo/repl.html#function%20foo%28{d}%3D{d%3A1}%29%20{%0A%20%20%0A} <http://google.github.io/traceur-compiler/demo/repl.html#function%20foo(%7Bd%7D=%7Bd:1%7D)%20%7B%0A%20%20%0A%7D>

If you open a console, you can call `foo()`.

> On 28 Nov 2014, at 16:45 , Bradley Meck <bradley.meck at gmail.com> wrote:
> 
> function foo({d}={d:1}) {
>   
> }

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141128/99ad8df6/attachment.html>


More information about the es-discuss mailing list