returns the index of the item by its id
getIndex(id: string | number): number;
Parameters:id: string | number
- the id of the itemThe index of the item.
Example
const index = component.data.getIndex("1"); // -> returns 0
Related sample: Data. Get index
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4