Files
2019-10-17 12:36:15 +09:00

7 lines
140 B
TypeScript

/**
* A naive isURL
*/
export default function isURL(str: any): boolean {
return typeof str === 'string' && /^https?:\/\//.test(str);
}