Improved deep equality testing for Node.js and the browser with support for complex types and circular references.
Overall
score
96%
{
"context": "This criteria evaluates how well the engineer uses the deep-eql package to handle JavaScript arguments objects. The focus is on correctly utilizing deep-eql's ability to compare arguments objects element-by-element while respecting their distinct type nature.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import deep-eql",
"description": "The solution imports the deepEqual function from the 'deep-eql' package correctly (e.g., `const deepEqual = require('deep-eql')` or `import deepEqual from 'deep-eql'`)",
"max_score": 15
},
{
"name": "Use deepEqual function",
"description": "The solution uses the deepEqual function to perform the comparison between arguments and expected values",
"max_score": 25
},
{
"name": "Convert arguments properly",
"description": "The solution correctly handles the arguments object by either converting it to an array for comparison (e.g., using Array.from() or spread operator) or by comparing individual elements using deepEqual in a loop",
"max_score": 30
},
{
"name": "Length validation",
"description": "The solution checks that the number of arguments matches the expected length before or during comparison",
"max_score": 15
},
{
"name": "Element-wise comparison",
"description": "The solution performs element-by-element deep comparison, ensuring nested objects/arrays are compared correctly using deep-eql's capabilities",
"max_score": 15
}
]
}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