I have an array with oid and name data that I need to compare against an object to see if the oid value exists within it.
Here is the array:
const values = [
{
"oid": "nbfwm6zz3d3s00",
"name": "",
},
{
"oid": "g74rvmr3cxpc0",
"name": "",
}
]
And here is the Object:
const objValues = {
nbfwm6zd3s00: 'test value 1',
g74rvmrcxpc0: 'test value 2'
)
Is there a way for me to check if the oid value in my data array exists in the "objValues"?