Variables
Const isArray
isArray: isArray = Array.isArray
Const isDate
isDate: (x: any) => x is Date = <any>((x: any) => toStr.call(x) === '[object Date]')
Type declaration
-
-
Parameters
Returns x is Date
Const isDefined
isDefined: (x?: X) => boolean = not(isUndefined)
Type declaration
-
-
Parameters
Returns boolean
Const isFunction
isFunction: (x: any) => x is Function = <any>tis('function')
Type declaration
-
-
Parameters
Returns x is Function
Const isNullOrUndefined
isNullOrUndefined: (x?: X) => boolean = or(isNull, isUndefined)
Type declaration
-
-
Parameters
Returns boolean
Const isNumber
isNumber: (x: any) => x is number = <any>tis('number')
Type declaration
-
-
Parameters
Returns x is number
Const isPromise
isPromise: (x: any) => x is Promise<any> = <(x: any) => x is Promise<any>>and(isObject, pipe(prop('then'), isFunction))
Type declaration
-
- (x: any): x is Promise<any>
-
Parameters
Returns x is Promise<any>
Const isRegExp
isRegExp: (x: any) => x is RegExp = <any>((x: any) => toStr.call(x) === '[object RegExp]')
Type declaration
-
-
Parameters
Returns x is RegExp
Const isString
isString: (x: any) => x is string = <(x: any) => x is string>tis('string')
Type declaration
-
-
Parameters
Returns x is string
Const isUndefined
isUndefined: (Anonymous function) = tis('undefined')
Predicates
These predicates return true/false based on the input. Although these functions are exported, they are subject to change without notice.