Generation

generate functionSat, 12 Nov 2022

A function that returns true if 2 objects are deep equal

function deepEqual(a, b) { if(a === b) { return true; } if (a == null || typeof a != "object" || b == null || typeof b != "object") { return false; } return a.value === b.value; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant