Answers for "append http to url"

0

append http to url

const withHttp = url => !/^https?:\/\//i.test(url) ? `http://${url}` : url;
Posted by: Guest on April-02-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language