mastoradio-fork/src/util.js

10 lines
281 B
JavaScript

export { default as getUrls } from 'get-urls'
export { default as getYoutubeId } from 'get-youtube-id'
export function isSupportedUrl(url) {
return (new URL(url)).hostname === 'youtube.com'
}
export function intersection(xs, ys) {
return xs.filter(x => ys.includes(x));
}