ES6 adds a new feature called “concise methods” to object literals and classes we can condense render: function () {}
to render()
var o = {
foo() { .. }
};
And that’s shorthand for the more familiar:
var o = {
foo: function() { .. }
};
ES6 adds a new feature called “concise methods” to object literals and classes we can condense render: function () {}
to render()
var o = {
foo() { .. }
};
And that’s shorthand for the more familiar:
var o = {
foo: function() { .. }
};