Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const cleanUrls = (Array.isArray(urls) ? urls : [urls]).map(url => sanitizeUrl(url));
const newUrls = cleanUrls.filter(url => (this as any)._urls.indexOf(url) === -1);