This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Cycle Detector - Identifies cyclic/circular references in JavaScript objects | |
| * | |
| * Usage (browser console): | |
| * Load via: let s = document.createElement('script'); s.src = 'URL_TO_THIS_FILE'; document.head.appendChild(s); | |
| * Or paste directly into console | |
| * | |
| * Usage (Node.js): | |
| * const { detectCycles, hasCycles } = require('./cycle-detector.js'); | |
| * |