Functions
attempt
attempt<T>( func: Func < T > , defaultValue?: T , silent?: boolean ) : T | undefined
Type parameters
Parameters
func: Func < T >
Optional defaultValue: T
Default value silent: boolean = true
Returns T
|
undefined
compose
compose<T>( ... funcs: Func [] ) : function
Type parameters
Parameters
Returns function
flow
flow<T>( args?: any [] | any , ... funcs: Func [] ) : T
Type parameters
Parameters
Optional args: any [] | any
Rest ... funcs: Func []
Returns T
identity
Type parameters
Parameters
Returns T
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Simple try catch wrapper that returns a default value if exception was raised. If silent = false, there will be a 'console.error' call.