Hi Dave,
> I'm more skeptical of this one. It's sort of treating empty arrays as falsey,
> which they aren't. And I've never noticed a need for this. But that might
> just be the BLUB principle in action. Do you have examples/use cases in mind?
Here's a hypothetical use case, hope this isn't stretching too much...
let Pizza = function(...toppings = ["pepperoni"]) {
this.toppings = toppings;
}
let pepperoni = new Pizza(), hawaiin = new Pizza("pineapple", "ham");
Cheers,
Sean Eagan
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss