I have a string like below
https://maps.googleapis.com/maps/api/streetview?channel=rdc-ldp-streetview&client=sourcemaps
How do i check whether my variable value returned matches with:
https://maps.googleapis.com/maps/api/streetview
I have a string like below
https://maps.googleapis.com/maps/api/streetview?channel=rdc-ldp-streetview&client=sourcemaps
How do i check whether my variable value returned matches with:
https://maps.googleapis.com/maps/api/streetview
ES6
str.startsWith('https://maps.googleapis.com/maps/api/streetview');
ES5
str.indexOf('https://maps.googleapis.com/maps/api/streetview') === 0