-1

This function in typescript

async function main() {

is converted to

function main() {
    return __awaiter(this, void 0, void 0, function* () {

Does that * in function* represent a C++ like pointer ?

Aniket Prajapati
  • 335
  • 1
  • 16

1 Answers1

1

The function* declaration (function keyword followed by an asterisk) defines a generator function, which returns a Generator object.

Refer to MDN Docs

Aniket Prajapati
  • 335
  • 1
  • 16