Return 数组中的特定对象 angular

Return a specific object in array angular

我开始使用 angular。我需要 return 匹配搜索的对象或至少包含该对象。请告知,我目前正在 returning 所有对象

return items.filter( it => {
    console.log('awe', it[0].quoteOrderId.includes(searchText);
    if(it[0].quoteOrderId.includes(searchText) == true){
        console.log("we need the specific object returned");
    }
    else{
      return it;
    }
    });

}

return items.filter( it => {
    if (it[0].quoteOrderId.includes(searchText) == true){
        const found = it.find(function(response){
            return response;
        })
        return found;
    }
    else {
      return '';
    }
    });
   }

这就是我要找的东西