Necessary Pigeonholing Mechanism
    Have ideas to improve npm?Join in the discussion! »

    ast-loose-compare
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.16 • Public • Published

    ast-loose-compare

    Compare anything: AST, objects, arrays and strings

    Install

    npm i ast-loose-compare

    Quick Take

    import { strict as assert } from "assert";
    import { looseCompare } from "ast-loose-compare";
    
    assert.equal(
      looseCompare(
        {
          a: {
            b: "d",
            c: [],
            e: "f",
            g: "h",
          },
        },
        {
          a: {
            b: "d",
            c: [],
          },
        }
      ),
      true
    );

    Documentation

    Please visit codsen.com for a full description of the API and examples.

    Contributing

    To report bugs or request features or assistance, raise an issue on GitHub.

    Licence

    MIT License

    Copyright (c) 2010-2021 Roy Revelt and other contributors

    ok codsen star

    Install

    npm i ast-loose-compare

    DownloadsWeekly Downloads

    25

    Version

    2.0.16

    License

    MIT

    Unpacked Size

    89.5 kB

    Total Files

    13

    Last publish

    Collaborators

    • avatar