Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
piezoney
· 9y ago · 0 comments
Well no, since you can use object destructuring.
const fn = ( { arg1 = '', arg2 = [], arg3 = true } = {} ) => { }
Comments
[–]
scottmf
9y ago
But isn't this already valid with trailing commas?