User Tools

Site Tools


java-script:find-and-find-index-methods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java-script:find-and-find-index-methods [2023/08/11 16:46] – created odeftajava-script:find-and-find-index-methods [2023/08/11 16:47] (current) odefta
Line 26: Line 26:
  
 <note> <note>
-  * 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:filter-method|filter]]** when you need all items that satisfy a condition.+  * Use **[[java-script:filter-method|filter]]** when you need **all items** that satisfy a condition.
 </note> </note>
- 
- 
- 
- 
java-script/find-and-find-index-methods.1691761595.txt.gz · Last modified: 2023/08/11 16:46 by odefta