Destructure array and use object shorthand assignment
I discovered that array destructing has the capability of providing default values.

const [, id = '', text = ''] = match;
return { id, text };


Array Destructuring