function isValidationErrorChanged (currErr, prevErr) {
  if (!currErr && !prevErr) {
    return false
  }
  if (!Array.isArray(currErr) || !Array.isArray(prevErr) || prevErr.length !== currErr.length) {
    return true
  }

  for (let i = 0; i < currErr.length; i++) {
    const currItem = currErr[i]
    const prevItem = prevErr[i]

    if (
      currItem.type !== prevItem.type ||
      JSON.stringify(currItem.error) !== JSON.stringify(prevItem.error)
    ) {
      return true
    }
  }

  return false
}
Checks if validation has changed from the previous execution
@param {Array} currErr current validation errors
@param {Array} prevErr previous validation errors