Ajouter HTTP à URL

const withHttp = url => !/^https?:\/\//i.test(url) ? `http://${url}` : url;
Distinct Duck