Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/mod.ts>equal

A strictly typed utility library.
Go to Latest
function equal
import { equal } from "https://deno.land/x/froebel@v0.21.3/mod.ts";

Checks if a and b are structurally equal using the following algorithm:

  • primitives are compared by value
  • functions are compared by reference
  • objects (including arrays) are checked to have the same properties and their values are compared recursively using the same algorithm

Parameters

a: unknown
b: unknown

Returns

boolean