import { equals, omit } from 'ramda';
var clearError = omit(['deactivated', 'path']);
export var areErrorsEqual = function (errors1, errors2) {
    if (errors1 === void 0) { errors1 = []; }
    if (errors2 === void 0) { errors2 = []; }
    return errors1.length === errors2.length && equals(errors1.map(clearError), errors2.map(clearError));
};
