The links.find() method finds a link by its ID in the JavaScript Scheduler.
DayPilot.Scheduler.links.find(id);id (string | number) - link ID to find
Returns a DayPilot.Link object if the link is found; otherwise returns null.
The id value is compared using ===, so 1 (number) is different from "1" (string).
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
const link = dp.links.find("link-1");
if (link) {
// ...
}Links API [doc.daypilot.org]
DayPilot.Scheduler.links.add()