The JavaScript spread operator is awesome! Previously when I wanted to merge two objects I would have to pull in underscore or lodash and do something like this.
var obj = _.extend(objectOne, objectTwo, {
customProp: "You better believe it!",
});
But now with the help of the wonderful babel compiler (along with the stage-2 preset) I am able to do this for the same effect.
var obj = {
...objectOne,
...objectTwo,
customProp: "You better believe it!",
};