Skip to main content
The Deno 2 Release Candidate is here
Learn more
method CompareUtil.prototype.recursiveCompare
import { CompareUtil } from "https://deno.land/x/sptaki@1.2.0/utils/CompareUtil.d.ts";

This function does an object comparison, equivalent to applying reflections and scanning for all possible properties including arrays.

Parameters

v1: any

value 1 to compare

v2: any

value 2 to compare

Returns

boolean

true if equal, false if not