Improved deep equality testing for Node.js and the browser with support for complex types and circular references.
Overall
score
96%
A utility module for validating scientific measurement data that may contain NaN (Not a Number) values. The module should properly compare measurement objects including their NaN values to determine if datasets are equivalent.
@generates
/**
* Compares two measurement objects or datasets for deep equality,
* treating NaN values as equal when they appear in the same locations.
*
* @param {any} dataset1 - The first dataset to compare
* @param {any} dataset2 - The second dataset to compare
* @returns {boolean} True if the datasets are deeply equal (including NaN equality), false otherwise
*/
function compareDatasets(dataset1, dataset2) {
// IMPLEMENTATION HERE
}
module.exports = {
compareDatasets
};Provides deep equality comparison with proper NaN handling.
@satisfied-by
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