/**
* Checks if the provided error code is an RBI error.
*
* @param {IRbiError} error - The error code to be evaluated. Can be of any type.
* @returns {boolean} - Returns true if the error code is considered an RBI error,
* otherwise returns false.
*/
export const isRBIError = (error: IRbiError): boolean => return !!error?.rbiErrorCode && !!error?.rbiErrorDomain; |