Function isRealFunction

Checks if value passed is any kind of Function, but excluding Classes. Uses z.isFunction that works for async generator functions (unlike lodash).

  • Parameters

    • value: unknown

      any value

    Returns value is Function

    true if the value is an invokable/callable Function (including async & generator), but not a class that needs new MyClass to create an instance, false otherwise.