Title: Checking for "Admin" Role in an Array Using Effect and Matchers
What is the best way to loop over an array and see if "some" matchers returned true?
All I want to do is check if the user has "Admin" role.
Lets say I have an array:
Does this look right? Can it be improved?
All I want to do is check if the user has "Admin" role.
Lets say I have an array:
const roles = ['Admin', 'User'] Does this look right? Can it be improved?
