Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

hugoalh-studio/equal-nodejs

Repository files navigation

Equal (NodeJS)

⚖️ MIT

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

NodeJS

  • Target Version: >= v16.13.0, &:
    • TypeScript >= v5.1.0 [Development]
  • Require Permission: N/A
  • 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

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published