forked from mkp8533/CORVID
-
Notifications
You must be signed in to change notification settings - Fork 1
Coding Style
Robert de Forest edited this page Jan 28, 2019
·
1 revision
Unless otherwise specified, follow the Google JavaScript style guide.
With few exceptions, classes will be defined as follows:
module.exports = function ClassName(args) {
if (!(this instanceof ClassName))
ClassName(args);
...
};
ClassName.prototype = {
methodName: function (...) {
...
},
...
};