7 ms·
Well no, since you can use object destructuring. const fn = ( { arg1 = '', arg2 = [], arg3 = true } = {} ) => { }
by piezoney 9y ago
Well no, since you can use object destructuring.
const fn = (
{
arg1 = '',
arg2 = [],
arg3 = true
} = {}
) => {
}
- scottmf 9y agoBut isn't this already valid with trailing commas?