deep-trails - v3.0.0-beta.3
    Preparing search index...

    Function isFunction

    • Checks whether a value is any function.

      You can force the TS predicate with a type argument.

      Type Parameters

      • T extends (...args: any[]) => any

      Parameters

      • value: unknown

      Returns value is T

      isFunction(class Trail {})  // true
      isFunction(async () => {}) // true
      isFunction(function () {}) // true

      3.0.0-beta.1