Im trying to look for an object based on a property value. Im trying to it this way but it doesnt work. Any chance i can fetch this dynamically without hardcording?
In the above approach, you can format the source property in a similar format as the property in which you want to search for the value. Then, we can do a key intersection between the two arrays/objects, and the result should be an array/object with the intersected key.