Object

  • clone
  • extend
  • inspect
  • isArray
  • isElement
  • isFunction
  • isHash
  • isNumber
  • isString
  • isUndefined
  • keys
  • toHTML
  • toJSON
  • toQueryString
  • values

API Docs

  • Utility Methods
  • Ajax
  • Array
  • Class
  • Date
  • Element
  • Element.Methods
  • Element.Methods.Simulated
  • Enumerable
  • Event
  • Form
  • Form.Element
  • Function
  • Hash
  • Insertion
  • Number
  • Object
  • ObjectRange
  • PeriodicalExecuter
  • Position
  • Prototype
  • String
  • Template
  • TimedObserver
  • document
  • document.viewport

isFunction
1.6

isFunction(obj) -> Boolean

Returns true if obj is of type function, false otherwise.

Examples


Object.isFunction($);
//-> true

Object.isFunction(123);
//-> false
© 2006-2007 Prototype Core Team | Licenses: MIT (source code) and CC BY-SA (documentation). mephisto-badge-tiny