Let me extend this to several properties:
var {foo, bar, baz} = user;
In traditional syntax, this would be:
var foo = user.foo,
bar = user.bar,
baz = user.baz;
So, for each property, we must repeat the object we want to access ( user), and the name of the property foo = ... .foo. New syntax makes it easy to repeat yourself.
, :
var {foo, bar, baz} = getUser();
var foo = getUser().foo,
bar = getUser().bar,
baz = getUser().baz;
getUser (- ) ( ). , , .