I would also say a good way of dealing with this problem is providing a default (if there is one).
const result = items.find(item.id === myId) || 'A default'