Improved deep equality testing for Node.js and the browser with support for complex types and circular references.
Overall
score
96%
Build a utility that determines if two temporal values represent the same moment, date, or duration. This is useful for matching calendar events, scheduling systems, and time-based comparisons.
The utility should support comparing the following temporal types:
@generates
/**
* Compares two values for deep equality, including support for Temporal API objects.
*
* @param {*} value1 - The first value to compare
* @param {*} value2 - The second value to compare
* @returns {boolean} True if the values are deeply equal, false otherwise
*/
function compareValues(value1, value2) {
// IMPLEMENTATION HERE
}
module.exports = { compareValues };Provides deep equality comparison with Temporal API support.
Install with Tessl CLI
npx tessl i tessl/npm-deep-eqldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10