JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q52621F
  • License MIT

Utility to find circular references in objects and return the object with circular references handled and replaced with a string representation.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (find-circular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    find-circular

    A utility to detect and handle circular references in objects.

    Installation

    npm install find-circular

    Usage

    import { findCircular } from "find-circular";
    
    const obj = { a: 1 };
    obj.self = obj;
    
    console.log(findCircular(obj));
    // Output: { a: 1, self: "[Circular]" }
    
    ## GitHub Repository
    
    You can find the source code and contribute to the project on GitHub:
    
    [find-circular GitHub Repository](https://github.com/johnretsas/find-circular)