Improved deep equality testing for Node.js and the browser with support for complex types and circular references.
Overall
score
96%
A utility for comparing numeric values in objects with special handling for edge cases like signed zeros.
@generates
/**
* Compares two values for deep equality, distinguishing between +0 and -0.
*
* @param {any} value1 - The first value to compare.
* @param {any} value2 - The second value to compare.
* @returns {boolean} True if the values are deeply equal (with -0 !== +0), false otherwise.
*/
function compareValues(value1, value2) {
// IMPLEMENTATION HERE
}
module.exports = {
compareValues
};Provides deep equality testing with signed zero distinction 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