Skip to Content
NFSFU234FormValidation v3 is here — file upload validation, config-driven rules, and more.

isURL

Checks whether a string is a syntactically valid URL. Returns: boolean

ParameterTypeRequiredDefaultDescription
urlstringrequired-The value to check.
Usage
Example: Validate URL
const url = 'https://www.example.com'; const isValidURL = nfsfu234FormValidation.isURL(url); console.log(isValidURL); // true
Last updated on