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