findByValue(value)

Class: List.

Description:

Finds first item whose value matches the argument. If item is {text: "First Item", value: "item1", id: 1}, it should be found by passing value "item1".

Parameters:

Name Type Description

value

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