Suppose there is an object with keys as strings containing dynamic values-
let obj = {
"/prodp/v1/engagemnt/{engID}/doc/{docID}": "roles_1",
"/prodp/v1/engagemnt/{engID}/review/{reviewID}": "roles_2"
}
How can I find the value in the above object for the following string?
/prodp/v1/engagemnt/1234/doc/doc_1234
According to the requirement, the above string should return the value roles_1 from the object. Is there a solution for this issue?