UNPKG
@atlas-kitchen/adyen-web
Version:
latest (6.15.0)
6.15.0
docs.adyen.com/checkout
atlas-kitchen/adyen-web
@atlas-kitchen/adyen-web
/
dist
/
es-legacy
/
utils
/
isValidURL.js
3 lines
(2 loc)
•
183 B
JavaScript
View Raw
1
2
3
const
t
=(
t,o=!
1
)=>{
let
r;
try
{r=
new
URL
(t)}
catch
(t){
return
!
1
}
return
o&&
"http:"
===r.
protocol
||
"https:"
===r.
protocol
};
export
{t
as
isValidHttpUrl};
//# sourceMappingURL=isValidURL.js.map