Check if user a role id from array

Hey there, so what I am trying to do is have an array:

const allowed = [
    'role1',
    'role2'
]


And I am trying to check if a user has at least one of these roles on their profile. I have if(!allowed.includes()), but I don't know where to go from there. If anyone can help, that would be great, thanks!
Was this page helpful?