java-script:find-and-find-index-methods
Differences
This shows you the differences between two versions of the page.
java-script:find-and-find-index-methods [2023/08/11 16:46] – created odefta | java-script:find-and-find-index-methods [2023/08/11 16:47] (current) – odefta | ||
---|---|---|---|
Line 26: | Line 26: | ||
< | < | ||
- | * Use **find** when you want to retrieve the first item that satisfies a condition. | + | * Use **find** when you want to retrieve the **first item** that satisfies a condition. |
- | * Use **findIndex** when you need the index of the first item that satisfies a condition. | + | * Use **findIndex** when you need the **index of the first item** that satisfies a condition. |
- | * Use **[[java-script: | + | * Use **[[java-script: |
</ | </ | ||
- | |||
- | |||
- | |||
- |
java-script/find-and-find-index-methods.1691761595.txt.gz · Last modified: 2023/08/11 16:46 by odefta