const a = ({ b = [], c }) => { return { f: b, g: c } } const { f, g } = a({ b: ['one'], c: 'two' }) console.log(f, g)