This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@hugoalh/equal
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Equal (NodeJS)

⚖️ MIT CodeFactor Grade

Release - Latest Release - Pre
GitHub GitHub Latest Release Version (GitHub Latest Release Date) GitHub Latest Pre-Release Version (GitHub Latest Pre-Release Date)
NPM NPM Latest Release Version NPM 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

Readme

Keywords

Package Sidebar

Install

npm i @hugoalh/equal

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

7.33 kB

Total Files

6

Last publish

Collaborators

  • hugoalh