How to find an object in a list by comparing on object property

后端 未结 3 1003
时光说笑
时光说笑 2021-01-27 22:13

How could I scan an array of objects in order to find an object by matching the object property:

$scope.items = [
  { id: 1, name: \'one\' }, 
  { id: 2, name: \         


        
3条回答
提交回复
热议问题