Function getFunctionBySource

  • Search for a function within a module by its source code.

    Type Parameters

    • F

    Parameters

    • module: unknown

      The module to search.

    • match: string | RegExp | ((func: UnknownFunction) => boolean)

      The string or regex to match against the function's source code.

    Returns F | undefined