(obj)
| 292 | }; |
| 293 | |
| 294 | const isValue = (obj) => { |
| 295 | if (!obj) return true; |
| 296 | if (typeof obj !== "object") return true; |
| 297 | return false; |
| 298 | }; |
| 299 | |
| 300 | const removeCirculars = (obj, branch = new Map(), path = "root") => { |
| 301 | if (isValue(obj)) return obj; |