documentcloud/underscore — pull request #889 by mimshwright (2012-12-11 01:22:38+00:00)
Title: hasMethod()

Added a function `hasMethod(obj, func)` (alias `hasFunction()`). It is similar to `has()` syntax and checks whether an object has a function. It returns true if the function is in the prototype chain even if it's not a direct property of the object.

Tests included!