Detecting and fixing circular references in JavaScript
<p>Given I have a circular reference in a large JavaScript object</p>

<p>And I try <code>JSON.stringify(problematicObject)</code></p>

<p>And the browser throws </p>

<blockquote>
  <p>"TypeError: Converting circular structure to JSON"</p>
</blockquote>

<p>(which is expected)</p>

<p>Then I want to find the cause of this circular reference, preferably using Chrome developer tools? Is this possible? How do you find and fix circular references in a large object? </p>
