Спасибо, работает. Однако в jS компрессоре ругается на строку:
indHref = (lbCollect, source) => lbCollect.findIndex(el => el.href === source);
Invalid assignment (line: 21, col: 32)
Делаю так:
source = [url]https://images.unsplash.com/photo-1430651717504-ebb9e3e6795e;[/url]
lbCollect = [
{href: "https://images.unsplash.com/photo-1430651717504-ebb9e3e6795e", id: "13", title: "Заголовок"},
{href: "https://images.unsplash.com/photo-1458400411386-5ae465c4e57e", id: "52", title: "Заголовок 2"},
{href: "https://images.unsplash.com/photo-1460500063983-994d4c27756c", id: "63", title: "Заголовок 3"},
{href: "https://images.unsplash.com/photo-1452473767141-7c6086eacf42", id: "47", title: "Заголовок 4"}
];
indHref = (lbCollect, source) => lbCollect.findIndex(el => el.href === source);