function isEqual(originalValue, newValue) {
        try {
            if(originalValue == newValue) {
                return true; 
            }
            return JSON.stringify(originalValue) === JSON.stringify(newValue);
        } catch (err) {
            return false;
        }
    }
Compares `newValue` with `originalValue` for equality.  
@param {*} originalValue Original value
@param {*} newValue New value
@returns {boolean} true if originalValue equals newValue, otherwise false