Skip to content

Commit 40760d9

Browse files
committed
UPDATE
1 parent 4a11875 commit 40760d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

JS/JS-br.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- [A diferença entre call apply bind](#a-diferença-entre-call-apply-bind)
2727
- [simulação para implementar `call` e `apply`](#simulação-para-implementar--call-e--apply)
2828
- [Implementação de Promise](#implementação-de-promise)
29-
- [Implementação do Generator](#generator-implementation)
29+
- [Implementação do Generator](#implementação-do-generator)
3030
- [Debouncing](#debouncing)
3131
- [Throttle](#throttle)
3232
- [Map、FlatMap e Reduce](#mapflatmap-and-reduce)
@@ -996,14 +996,14 @@ O código acima, que é implementado baseado em Promise / A+ especificação, po
996996
997997
![](https://user-gold-cdn.xitu.io/2018/3/29/162715e8e37e689d?w=1164&h=636&f=png&s=300285)
998998
999-
# Generator Implementation
999+
# Implementação do Generator
10001000
1001-
Generator is an added syntactic feature in ES6. Similar to `Promise`, it can be used for asynchronous programming.
1001+
Generator é uma funcionalidade sintática adicionada no ES6. Similar a `Promise`, pode ser usado para programação assíncrona.
10021002
10031003
```js
1004-
// * means this is a Generator function
1005-
// yield within the block can be used to pause the execution
1006-
// next can resume execution
1004+
// * significa que isso é uma função Generator
1005+
// yield dentro de um bloco pode ser usado para pausar a execução
1006+
// next consegue resumir a execução
10071007
function* test() {
10081008
let a = 1 + 2;
10091009
yield 2;

0 commit comments

Comments
 (0)