- Preparing search index...
 
- The search index is not available
 
tsjam 
 
- optionalMap<T, U>(optionalValue, mapper): U | undefined
 
- 
Parameters
- 
optionalValue: undefined | null | T
 
- 
mapper: ((nonOpt) => U)
 
 
Returns U | undefined
 
- optionalMap<T, U>(optionalValue, mapper, defaultValue): U
 
- 
Parameters
- 
optionalValue: undefined | null | T
 
- 
mapper: ((nonOpt) => U)
 
- 
defaultValue: U
 
 
Returns U
 
 
 
 
Applies map function to
optionalValueif it contains value, otherwise returns undefined