{
"product_hot": {
"default": {
"name": "Rose",
"values": [
"product_rose",
"product_default"
]
},
"exclusive": {
"name": "Cherry Blossom",
"values": [
"product_cherryBlossom",
"product_exclusive",
]
}
},
}
I have retrieved the results from the database. and it is an array :
console.log(this.productType) // result: ['product_cherryBlossom', 'product_cherryBlossom'];
How do I compare this result with the object above, to get the key as :exclusive.
My question may have a lot of mistakes.Please give me more feedback..Thanks