I think an appropriate map call will let you do anything you want here.
On Mar 27, 2016 4:51 AM, "Cyril Auburtin" <[email protected]> wrote:
> when doing let [tag = 'cat', ...cls] = '.foo.bar'.split('.')
>
> I'd find it more logical to use the default value for all falsy values
> like an empty string '' for the tag variable.
>
> but the default value isn't applied there
>
> _______________________________________________
> 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