replugged

    Function getFunctionKeyBySource

    • Retrieves the key of a function within a module that matches a given source pattern.

      Type Parameters

      • T

        The type of the module object.

      Parameters

      • module: T

        The module object to search within.

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

        The pattern to match the function's source code.

      Returns Extract<keyof T, string> | undefined

      The key of the matching function as a string, or undefined if no match is found.

    MMNEPVFCICPMFPCPTTAAATR