does console.trace() work for object methods? code example
Example 1: javascript get stack trace
try {
throw "Could not parse that text!";
} catch(e) {
console.log(e.stack); //log the stack trace to console
}
Example 2: console trace js
console.trace( [...any, ...data ]);