can someon explain em this line its a piece of a node.js project?

can someon explain em this line its a piece of a node.js project
 
const { body: { user } } = req;
You already invited:

Tom

Upvotes from:

Its object destructing. In this case it is destructuring req.body.user so that the variable user is assigned the value of req.body.user

If you wanna answer this question please Login or Register