code: function decycle(key, val) {
        if (typeof val === 'object' && val !== null) {
          if (cache.indexOf(val) >= 0) return;
          cache.push(val);
        }
        return val;
      }
docs: Safe stringifying of cyclical JSON