How to retrieve object name by filtering the array of objects based on the id using react and javascript?

后端 未结 0 809
夕颜
夕颜 2021-02-01 04:16

i have an array of objects like below,

const arrObj = [
    {
        id: \'1\',
        name: \'n1\',
        type: \'type1\',
    },
    {
        id: \'2\',
           


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