Find an attribute with the specified type in the array.
this |
The attributes array to search. |
attr_type |
The type of attribute to find. |
the first attribute found with the specified type, or |