NewDash

    Function isFunction

    • Checks if value is classified as a Function object.

      Parameters

      • value: any

        The value to check.

      Returns value is Function

      Returns true if value is a function, else false.

      5.5.0

      isFunction(class Any{})
      // => true

      isFunction(() => {})
      // => true

      isFunction(async () => {})
      // => true

      isFunction(function * Any() {})
      // => true

      isFunction(Math.round)
      // => true

      isFunction(/abc/)
      // => false
    MMNEPVFCICPMFPCPTTAAATR