replugged

    Function getFunctionBySource

    • Retrieves a function from a module by searching its source code for a specific match.

      Type Parameters

      • T

        The expected type of the function to be returned.

      Parameters

      • module: unknown

        The module to search within. This can be any object or structure containing functions.

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

        The pattern to match the function's source code.

      Returns T | undefined

      The first function that matches the given pattern, or undefined if no match is found.

    MMNEPVFCICPMFPCPTTAAATR