Skip to content

Instantly share code, notes, and snippets.

Oleg-Imanilov /
Last active Sep 1, 2021
How to handle circular references and maybe save some bandwidth.

The Problem

If we have object like this

var x = {foo:1} = x

We can't send it over http, because of circular reference. We also can't stringify it.