I have a list of insurance rates structured like this
const insuranceRate = [
{
"min_value": 1,
"max_value": 25000,
"add": 328
}, {
"min_value": 25001,
"max_value": 25500,
"add": 331
}, {
"min_value": 25501,
"max_value": 26000,
"add": 335
}, {
"min_value": 26001,
"max_value": 26500,
"add": 338
}]
If I buy a vehicle priced at $25,900, how can I identify the correct object and increase my insurance cost by $335?