Funções Geradoras do JavaScript - Retrospectiva NBKMT 2018

in funcoes •  6 years ago  (edited)

O NBK Mundo Tech apresentou uma aula tutorial sobre funções geradoras no JavaScript. Em inglês, generator functions, são aquelas funções com o asterisco após a palavra-chave function:

function* minhaFuncaoGeradora() {
  yield 1;
  yield 2;
  yield 3;
}

Confira a aula no nosso canal e entenda o que está acontecendo no código acima:

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!