Using the new shorthand feature in ES6 for object literals, is it possible to use obj.id
and have it parse as id: obj.id
? Wondering if I've missed something in the new spec...
create(obj) {
this.connection.send({
obj.id
});
this.add(obj);
},