class method Object.isFunction

View source on GitHub →

Object.isFunction(object) → Boolean
  • object (Object) – The object to test.

Returns true if object is of type Function; false otherwise.

Examples
Object.isFunction($);
//-> true
 Object.isFunction(123);
//-> false