The links.find() method finds a link by its id.
DayPilot.Scheduler.links.find(id);
id - the link id to be found
Note: The id is compared using ===. That means 1 is different from "1".
DayPilot.Link object if the link is found, otherwise null.