Hacker News new | past | comments | ask | show | jobs | submit login

Well no, since you can use object destructuring.

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




But isn't this already valid with trailing commas?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: