findByID(value)
Class: List.
Description:
Finds first item whose ID matches the argument. If item is {text: "First Item", value: "item1", id: 1}, it should be found by passing value 1.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string | number |
Search by this text or number |
Returns:
Returns an index of the first found list items or -1 if no item was found.
Type: number
