Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koolba
on May 30, 2017
|
parent
|
context
|
favorite
| on:
Node v8.0.0 Released
I suppose but that's usually an indication that an object would be more apt. If you have enough parameters that it needs to be wrapped, they're probably hard to track too.
piezoney
on May 31, 2017
[–]
Well no, since you can use object destructuring.
const fn = ( { arg1 = '', arg2 = [], arg3 = true } = {} ) => { }
scottmf
on May 31, 2017
|
parent
[–]
But isn't this already valid with trailing commas?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: