3 ms·
It's ES6 shorthand literal syntax [1], equivalent to: module.exports = { route: route, routes: routes }; [1] http://ariya.ofilabs.com/2013/02/es6-and-obje
by insin 12y ago
It's ES6 shorthand literal syntax [1], equivalent to:
module.exports = { route: route, routes: routes };
[1] http://ariya.ofilabs.com/2013/02/es6-and-object-literal-property-value-shorthand.html http://ariya.ofilabs.com/2013/02/es6-and-object-literal-prop...
- rheng 12y agoThat explains a lot. Thank you!