Update translation and format text (#26032)

pull/36601/head
Igor Hideki Trindade 2019-08-15 10:20:51 -04:00 committed by Randell Dawson
parent cb4ec5c59d
commit ca2fdaa967
1 changed files with 25 additions and 23 deletions

View File

@ -1,15 +1,17 @@
--- ---
title: Some Function title: Some Function
localeTitle: Alguma função localeTitle: Função some
--- ## A função alguns ---
A função `some()` é usada para verificar se pelo menos um elemento de uma matriz atende a uma determinada condição. A função retorna `true` se a condição for satisfeita por um elemento e false se algum dos elementos atender a condição ## A função some
A sintaxe original da função some é: A função `some()` é usada para verificar se pelo menos um elemento de uma matriz atende a uma determinada condição. A função retorna `true` se a condição for satisfeita por um elemento e `false` se algum dos elementos atender a condição
A sintaxe original da função `some` é:
```javascript ```javascript
arr.some(function callback(currentValue, index, array) { arr.some(function callback(currentValue, index, array) {
// Do some stuff with currentValue (index and array are optionals) // Faz algo com o valor atual (index e array são opcionais)
}, [thisArg]); }, [thisArg]);
``` ```