2.0.1 • Published 4 months ago
@hugoalh/equal v2.0.1
Equal (NodeJS)
Release - Latest | Release - Pre | |
---|---|---|
() | () | |
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>]";
- NPM
ℹ️ Notice: It is also able to import part of the module with sub path if available, see file
package.json
propertyexports
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";
- NPM
ℹ️ Notice: It is also able to import part of the module with sub path if available, see file
package.json
propertyexports
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