diff --git a/src/main/resources/core/console.js b/src/main/resources/core/console.js index 814f221..a49617e 100644 --- a/src/main/resources/core/console.js +++ b/src/main/resources/core/console.js @@ -33,6 +33,11 @@ console.debug = global.debug ? console.debug : global.noop; console.sender = console.info; console.console = console.info; + console.object = function (obj) { + for (var i in obj) { + console.log(i, '=>', obj[i]) + } + } console.ex = function (ex) { this.console('ยง4' + ex); var track = ex.getStackTrace();