whyczyk
2022-02-19 558f701a0e9bcab4d6633c34bfdf3dccfd5dab66
1
2
3
4
5
6
7
8
9
10
11
12
13
function getLabelByValue(value, list) {
    let result = 0;
    for(let i=0; i<list.length; i++) {
        let item = list[i];
        if(item.value == value) {
            result = item.label;
            break;
        }
    }
    return result;
}
 
export default getLabelByValue;