The equals
function is used to check if two objects are deeply equal. It checks the given objects recursively and returns true only if all the primitive values in all levels of nesting match.
As we know, for objects, the equality check returns false if the reference is different. This can be confusing at times. equals
in Ramda avoids this confusion as it checks only if the keys and values match.