devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
20 lines (19 loc) • 659 B
JavaScript
/**
* DevExtreme (cjs/renovation/utils/shallow_equals.js)
* Version: 21.2.4
* Build date: Mon Dec 06 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
exports.shallowEquals = void 0;
var shallowEquals = function(firstObject, secondObject) {
if (Object.keys(firstObject).length !== Object.keys(secondObject).length) {
return false
}
return Object.keys(firstObject).every((function(key) {
return firstObject[key] === secondObject[key]
}))
};
exports.shallowEquals = shallowEquals;