2.0.1 • Published 4 months ago

@hugoalh/equal v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Equal (NodeJS)

⚖️ MIT CodeFactor Grade

Release - LatestRelease - Pre
GitHubGitHub Latest Release Version (GitHub Latest Release Date)GitHub Latest Pre-Release Version (GitHub Latest Pre-Release Date)
NPMNPM Latest Release VersionNPM Latest Pre-Release Version

A NodeJS module ported the function equal from "Deno - Standard Library - Assert".

🔰 Begin

Bun

🧪 Experimental: Bun is still under development.

  • Target Version: ^ v1.0.0, &:
    • TypeScript >= v5.1.0 [Development]
  • Require Permission: N/A
  • Domain/Registry:
    • NPM
      bun add @hugoalh/equal[@<Tag>]
      import ... from "@hugoalh/equal[@<Tag>]";

ℹ️ Notice: It is also able to import part of the module with sub path if available, see file package.json property exports for available sub paths.

NodeJS

  • Target Version: >= v16.13.0, &:
    • TypeScript >= v5.1.0 [Development]
  • Require Permission: N/A
  • Domain/Registry:
    • NPM
      npm install @hugoalh/equal[@<Tag>]
      import ... from "@hugoalh/equal";

ℹ️ Notice: It is also able to import part of the module with sub path if available, see file package.json property exports for available sub paths.

🧩 API

  • function equal(a: unknown, b: unknown): boolean;

ℹ️ Notice: Documentation is included inside the script file.

✍️ Example

  • import { equal } from "@hugoalh/equal";
    
    equal([1, 2, 3], [1, 2, 3]);
    //=> true
    
    equal([1, 2, 3], [1, [2], 3]);
    //=> false
2.0.1

4 months ago

2.0.0

4 months ago

1.0.2

10 months ago

1.0.6

8 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.1

11 months ago