79331194

Date: 2025-01-05 17:31:13
Score: 0.5
Natty:
Report link

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'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Broccoli