Skip to main content
Module

x/froebel/equal.ts>default

A strictly typed utility library.
Go to Latest
function default
import { default } from "https://deno.land/x/froebel@v0.23.0/equal.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