This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function allowedExtensions (exts) { | |
return exts.map((item, i) => { | |
const first = i === 0 | |
const last = i === (exts.length - 1) | |
if (first) { | |
return [item] | |
} | |
if (last) { |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Promise mais simples que você pode ter. | |
// Ainda que o retorno *pareça* imediado, lembre-se que | |
// ainda estamos em contexto de computação assíncrona. | |
// Note que não usamos uma função nossa pra gerar a promise, | |
// mas usamos uma função do próprio JS. | |
const p1 = Promise.resolve(1) | |
// Função cujo retorno é uma promise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const foo = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_____ _____ _____ ____ _____ _____ | |
| __ | __| _ | \| | __| | |
| -| __| | | | | | | __| | |
|__|__|_____|__|__|____/|_|_|_|_____| | |