nodejs node.js console.log util.format ...args for logging log
For logging mulit args with “%O”```
const util = require(‘util’);
function d(…args) {
if (typeof (console) !== ‘undefined’) {
console.log('[Logging]', util.format(…args));
}
}
For logging mulit args with “%O”```
const util = require(‘util’);
function d(…args) {
if (typeof (console) !== ‘undefined’) {
console.log('[Logging]', util.format(…args));
}
}