function checkJsonConditional(component, json, row, data, form, onError) {
  try {
    return jsonLogic.apply(json, {
      data,
      row,
      form,
      _,
    });
  }
  catch (err) {
    console.warn(`An error occurred in jsonLogic advanced condition for ${component.key}`, err);
    return onError;
  }
}
Check a component for JSON conditionals.
@param {import('@formio/core').Component} component - The component
@param {import('@formio/core').JSONConditional} json - The json conditional to check.
@param {*} row - The contextual row data for the component.
@param {*} data - The full submission data.
@param {import('@formio/core').Form} form - The Form JSON of the form.
@param {*} onError - Custom return value if there is an error.
@returns {boolean} - TRUE if the condition is true; FALSE otherwise.