Searches an element in an array