diff --git a/client/src/utils.js b/client/src/utils.js index 280a74f93f..65e9af9d46 100644 --- a/client/src/utils.js +++ b/client/src/utils.js @@ -451,6 +451,17 @@ Espo.Utils = { return data; }, + /** + * Deep comparison. + * + * @param {Object} a1 An argument 1. + * @param {Object} a2 An argument 2. + * @return {boolean} + */ + areEqual: function (a1, a2) { + return _.isEqual(a1, a2); + }, + /** * Compose a class name. *