This method returns true or false indicating the specified dictionary has the exact same set of key/value pairs as
this dictionary.
var dictObj = shell.serviceManager.basics.dictionary;
dictObj.setValueForKey("John", "FirstName");
dictObj.setValueForKey("Doe", "LastName");
dictObj.setValueForKey("35", "Age");
var dictObj2 = shell.serviceManager.basics.dictionary;
dictObj2.setValueForKey("John", "FirstName");
dictObj2.setValueForKey("Doe", "LastName");
//should be false because "Age" key is missing
var isEqual = dictObj.isEqualToDictionary(dictObj2);
if (!isEqual)
{
dictObj2.setValueForKey("35", "Age");
isEqual = dictObj.isEqualToDictionary(dictObj2);
}