HTTP an URL anhängen

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