Vue array use of find function

let obj = this.list.find(item= > item.id === payload.id)
Copy the code

Item represents each element in the array. If item.id === payload-id is true, the item object is returned