IsValid
Determine whether the given value is a string, numeric, or date.Arrays, structs, queries, closures, classes and components, and other complex structures will return false.
Note we expressly do not support the eurodate
type, since date formats vary across EU countries. For this, prefer the LSIsDate( date, locale )
method instead.
Method Signature
Arguments
Argument
Type
Required
Description
Default
type
string
true
The type to validate the value against
value
any
true
Value to test for validaty on a given type
min
any
false
The minimum value for the range type or a pattern to validate the value against
max
any
false
The maximum value for the range type
pattern
any
false
The pattern to validate the value against
Examples
Related
Last updated