JSFiddle - React, Tailwind, and code Playground
JavaScript
if("http://www.google.de".search("http://") > 0){
alert('with http');
} else {
alert('no http');
}
if("http://www.google.de".search("http://") > 0){
alert('with http');
} else {
alert('no http');
}