How can I access an object in an array based on the value of a specific key?

后端 未结 0 1959
無奈伤痛
無奈伤痛 2020-11-22 09:31

I have this object/array of objects.

const products = [{
    name: \'apple\',
    count: 3
}, {
    name: \'banana\',
    count: 5
}, {
    name: \'carrot\',
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题