Tests if an object has a specified method name.
null
undefined
value to test
property to test
boolean indicating if an object has a specified method name
var beep = { 'boop': isMethod }; var bool = isMethod( beep, 'boop' ); // returns true var bool = isMethod( beep, 'toString' ); // returns false
Tests if an object has a specified method name.
Notes
null
orundefined
are coerced to objects.