simply you just need to return the map function.
displayTripsViews(datas) {
return datas.tripLineItemDetails.map((data)=> (data))
}
When you have one line you can even do this, that will return your value.
displayTripsViews = (datas) => datas.tripLineItemDetails.map((data) => (data.tripDate))