Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (typeof Res === 'undefined') {
- errResponse = {
- data: {},
- code: function (code) {
- this.data.code = code;
- return this;
- },
- description: function (args) {
- this.data.descArgs = args;
- return this;
- },
- message: function (message) {
- this.data.msg = message;
- return this;
- },
- send: function () {
- console.log(this.data);
- return this;
- }
- };
- } else {
Advertisement
Add Comment
Please, Sign In to add comment