Source: helpers/areSame.mjs
export const matchFields = ({ fields, left, right }) => {
Compares objects by a selected list of fields using named arguments.
Special cases for areaTitle and cityTitle also look into nested connectOrCreate.create.title values.
Target style API. Preferred for new code.
export const areSame = (fields, left, right) => matchFields({ fields, left, right })
Compares objects by a selected list of fields.
Special cases for areaTitle and cityTitle also look into nested connectOrCreate.create.title values.
Legacy API. Kept for older code and not the preferred choice for new code.