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

isURL

The isURL function is used to validate whether a given string is a valid URL.

Works in: HTML5, React JS, Node.js

ParameterTypeDefaultDescription
urlstringundefinedThe string to validate as a URL.

Usage

Example: Validate URL

const url = 'https://www.example.com'; const isValidURL = nfsfu234FormValidation.isURL(url); console.log(isValidURL); // true

See also

Last updated on