Referring to this page: https://cloud.google.com/functions/docs/writing/http
In the code excerpt below, the first assignment statement is inside parentheses. Is there any benefit to doing that? I omitted them with no apparent loss of functionality, but wondering if I might be missing out on some desired behavior.
switch (req.get('content-type')) {
// '{"name":"John"}'
case 'application/json':
({name} = req.body);
break;
// 'John', stored in a Buffer
case 'application/octet-stream':
name = req.body.toString(); // Convert buffer to a string
break;