interface Extensions { contains(str,
elem): boolean; is(str,
pattern,
modifiers): boolean; isIPv4(str): boolean; isIPv6(str): boolean; isUrl(str): boolean; len(str,
min,
max): boolean; max(str,
val): boolean; min(str,
val): boolean; not(str,
pattern,
modifiers): boolean; notContains(str,
elem): boolean; notEmpty(str): boolean; notIn(str,
values): boolean; notRegex(str,
pattern,
modifiers): boolean; regex(str,
pattern,
modifiers): boolean; } Methods
contains
- contains(str, elem): boolean
Parameters
- str: string
- elem: string[]
Returns boolean
is
- is(str, pattern, modifiers): boolean
Parameters
- str: string
- pattern: string
- modifiers: string
Returns boolean
isIPv4
- isIPv4(str): boolean
Returns boolean
isIPv6
- isIPv6(str): boolean
Returns boolean
isUrl
- isUrl(str): boolean
Returns boolean
len
- len(str, min, max): boolean
Parameters
- str: string
- min: number
- max: number
Returns boolean
max
- max(str, val): boolean
Returns boolean
min
- min(str, val): boolean
Returns boolean
not
- not(str, pattern, modifiers): boolean
Parameters
- str: string
- pattern: string
- modifiers: string
Returns boolean
notContains
- notContains(str, elem): boolean
Parameters
- str: string
- elem: string[]
Returns boolean
notEmpty
- notEmpty(str): boolean
Returns boolean
notIn
- notIn(str, values): boolean
Parameters
- str: string
- values: string[]
Returns boolean
notRegex
- notRegex(str, pattern, modifiers): boolean
Parameters
- str: string
- pattern: string
- modifiers: string
Returns boolean
regex
- regex(str, pattern, modifiers): boolean
Parameters
- str: string
- pattern: string
- modifiers: string
Returns boolean