react-klasha
Version:
This is an reactJS library for implementing klasha payment gateway
17 lines (14 loc) • 413 B
JavaScript
import standards from '../../standards';
/**
* Check if a given role is unsupported
* @method isUnsupportedRole
* @memberof axe.commons.aria
* @instance
* @param {String} role The role to check
* @return {Boolean}
*/
function isUnsupportedRole(role) {
const roleDefinition = standards.ariaRoles[role];
return roleDefinition ? !!roleDefinition.unsupported : false;
}
export default isUnsupportedRole;