Interface GeneratorFunction

    interface GeneratorFunction {
        new GeneratorFunction(...args: any[]): Generator;
        "[toStringTag]": string;
        length: number;
        name: string;
        prototype: Generator;
        (...args: any[]): Generator;
    }
    • Creates a new Generator object.

      Parameters

      • ...args: any[]

        A list of arguments the function accepts.

      Returns Generator

    Constructors

    • Creates a new Generator object.

      Parameters

      • ...args: any[]

        A list of arguments the function accepts.

      Returns Generator

    Properties

    "[toStringTag]": string
    length: number

    The length of the arguments.

    name: string

    Returns the name of the function.

    prototype: Generator

    A reference to the prototype.