logger
logger copied to clipboard
logger throws errors on circular references
in here:
function copy<T>(a: T): T {
return JSON.parse(JSON.stringify(a));
}
This breaks if objects are not serializable. I have a tree nodes, which reference their parents and logging those should work.