Module validators/misc-validators
Functions
isArray
- isArray<T>(arg: unknown): arg is T[]
-
Type parameters
Parameters
Returns arg is T[]
isBoolean
- isBoolean(arg: unknown): arg is boolean
-
Parameters
Returns arg is boolean
isElement
- isElement(obj: unknown): boolean
-
Parameters
Returns boolean
isEmpty
- isEmpty(value: unknown): boolean
-
Parameters
Returns boolean
isFloat
- isFloat(arg: unknown): arg is number
-
Parameters
Returns arg is number
isFunction
- isFunction(arg: unknown): boolean
-
Parameters
Returns boolean
isInt
- isInt(arg: unknown): arg is number
-
Parameters
Returns arg is number
isNumber
- isNumber(arg: unknown): arg is number
-
Parameters
Returns arg is number
isObject
- isObject<T>(value: unknown): value is T
-
Type parameters
Parameters
Returns value is T
isString
- isString(arg: unknown): arg is string
-
Parameters
Returns arg is string
isUndefined
- isUndefined(arg?: unknown): boolean
-
Parameters
Returns boolean
isValidEmail
- isValidEmail(email: string): boolean
-
Parameters
Returns boolean
isValidPhoneNumber
- isValidPhoneNumber(num: string): boolean
-
Parameters
Returns boolean