I'm using destructuring to declare some variables like this:
const { a, b, c } = require('./something'),
{ e = 'default', f = 'default'} = c;
Is there a way to make this into single line? I've tried something like :
const { a, b, c = { e = 'default', f = 'default'} } = require('./something');
But it gives me an error:
SyntaxError: Invalid shorthand property initializer