What the Heck can you destruct a destructor?
What the Heck can you destruct aĀ destructor?
Hey Brad ECMAScript 2015 added Object Destructuring assignment but I was wondering can you destruct a nested object?
I see so the question is what if I was given req.body but Iām just interested in req.body.device.id do I have to use the full name or can I destruct the object so that I only get a reference to the ID?
const req = { body: { device: { id: 'hello', }, hello: 'world', }, };
View On WordPress














