fixed-react-data-grid-custom
Version:
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
26 lines • 803 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.sameColumn = void 0;
var react_is_1 = require("react-is");
function sameColumn(a, b) {
for (var k in a) {
if (a.hasOwnProperty(k)) {
var valA = a[k];
var valB = b[k];
if ((typeof valA === 'function' && typeof valB === 'function') || (react_is_1.isElement(valA) && react_is_1.isElement(valB))) {
continue;
}
if (!b.hasOwnProperty(k) || valA !== valB) {
return false;
}
}
}
for (var k in b) {
if (b.hasOwnProperty(k) && !a.hasOwnProperty(k)) {
return false;
}
}
return true;
}
exports.sameColumn = sameColumn;
//# sourceMappingURL=ColumnComparer.js.map
;