The events.find() method finds an event with the specified ID.
DayPilot.Queue.events.find(id);
DayPilot.Event object or null.
Case insensitive search using event text:
const e = dp.events.find(3);