> For the complete documentation index, see [llms.txt](https://javascriptuse.gitbook.io/advanced/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://javascriptuse.gitbook.io/advanced/array-find-tim-phan-tu-dau-tien-thoa-man-dieu-kien-ok.md).

# Array find, Tìm phần tử đầu tiên thỏa mãn điều kiện (ok)

https\://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Array/find

Tìm phần tử đầu tiên thỏa mãn điều kiện

```
const array1 = [5, 12, 8, 130, 44];

const found = array1.find(element => element > 10);

console.log(found);
// expected output: 12
```
