Update translation and format text (#26032)
parent
cb4ec5c59d
commit
ca2fdaa967
|
@ -1,15 +1,17 @@
|
|||
---
|
||||
title: Some Function
|
||||
localeTitle: Alguma função
|
||||
---
## A função alguns
|
||||
localeTitle: 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 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
|
||||
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]);
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue