1const language = this.converstaionLanguage; // {"lang":"en"} <- this is JSON
2
3console.log(language); // [object Object]
4console.log(JSON.stringify(language) // {"lang":"en"}
1const util = require('util')
2
3console.log(util.inspect(myObject, {showHidden: false, depth: null}))
4
5// alternative shortcut
6console.log(util.inspect(myObject, false, null, true /* enable colors */))
1console.log(Object.getOwnPropertyNames(Math).filter(function (p) {
2 return typeof Math[p] === 'function';
3}));
4//-> ["random", "abs", "acos", "asin", "atan", "ceil", "cos", "exp", ...etc ]
5
1console.log(Object.getOwnPropertyNames(Math));
2//-> ["E", "LN10", "LN2", "LOG2E", "LOG10E", "PI", ...etc ]
3