From 2d09f2e23322aedda26f34d79bd7e579812dbb3f Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 12 Nov 2024 19:07:52 +0200 Subject: [PATCH] areEqual --- client/src/utils.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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. *