Test if an object has a specified method name, either own or inherited.
Test if an object has a specified method name.