Release - Latest | Release - Pre | |
---|---|---|
() | () | |
A NodeJS module ported the function equal
from "Deno - Standard Library - Assert".
- 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";
- 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.
-
function equal(a: unknown, b: unknown): boolean;
ℹ️ Notice: Documentation is included inside the script file.
-
import { equal } from "@hugoalh/equal"; equal([1, 2, 3], [1, 2, 3]); //=> true equal([1, 2, 3], [1, [2], 3]); //=> false