Files
watchparty/server/utils/playlist.ts
T
2026-06-21 03:53:06 +03:00

8 lines
169 B
TypeScript

export const findPlaylistVideoByUrl = (
playlist: PlaylistVideo[],
url?: string,
) => {
if (!url) return;
return playlist.find((video) => video.url === url);
};