If I have an attribute disabled, and I want to check if an element has this attribute before running a function, I can use
if element.hasAttribute('disabled')
If I have several attributes that relate to the same function, such as
attributes = [disabled, something, another]
How can I use if element.hasAttribute('attribute') to check for any of the attributes in the array?
Update:
I actually only have two items in my array, so I did
if el.hasAttribute('noink') || el.hasAttribute('disabled')
The responses below are also viable and I would use them if I had a larger array.