Hacker News new | ask | show | jobs
by piezoney 3300 days ago
Well no, since you can use object destructuring.

const fn = ( { arg1 = '', arg2 = [], arg3 = true } = {} ) => { }

1 comments

But isn't this already valid with trailing commas?