Bundling multiple properties into a single object is another common task in JavaScript that can be really tedious. More recent versions of ECMAScript have added a new bit of syntax to make this more convenient.
In this recipe, we'll see how to use this new syntax to create an object from existing variables.