VL
const isUrl = (str) => {
try {
new URL(str)
}
catch (error) {
return false
}
return true
}
спасибо!
Size: a a a
VL
const isUrl = (str) => {
try {
new URL(str)
}
catch (error) {
return false
}
return true
}
DE
const isUrl = string => {
try { return Boolean(new URL(string)); }
catch(e){ return false; }
}
S
const isUrl = string => {
try { return Boolean(new URL(string)); }
catch(e){ return false; }
}
DE
л
DE
л
л
DE
С
DE
л
DE
л
л
DE
л
л