Key Insight: WeakMap(original → clone) is the standard circular reference solution. Check seen.has(value) before recursing.
Practice this in a timed sprint →
5 free questions, no signup required