-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ellipsis spread syntax #230
Comments
|
|
or
finally
All examples rely on of spread to make customisation on a base set of options. |
Are you hungry @jrans ? want me to make you a sandwich ...? 😉 So in this case you are doing an _ES7_ object spread/copy, which you could achieve using I agree that it's "more verbose" ... but sometimes that makes code more human/beginner-friendly... Spread is available for I tried using it with Google Closure Compiler and got an |
I'd argue that Certainly if problems compiling then Object.Assign is good enough so I think we can let this issue |
@jrans happy to let it |
The examples on MDN are kinda useless ...
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Spread_operator
We need to write a couple of real world examples of where using spread operator in a real-world scenario clarifies the code. (not a fibonacci calculator ... or other manufactured "reason" to use them, a scenario where it's obviously better...)
The text was updated successfully, but these errors were encountered: