Methods
Static getMap
- getMap<TValue>(o: {}, valueGetter?: (propertyName: string, propertyValue: TValue) => TValue): null | Map<string, TValue>
Type parameters
Parameters
o: {}
Optional valueGetter: (propertyName: string, propertyValue: TValue) => TValue
- (propertyName: string, propertyValue: TValue): TValue
Parameters
propertyName: string
propertyValue: TValue
Returns TValue
Returns null | Map<string, TValue>
Static getMapFromKeyValuePairs
- getMapFromKeyValuePairs<TValue>(pairs: { key: string; value: any }[], valueGetter?: (propertyName: string, propertyValue: TValue) => TValue): null | Map<string, TValue>
Type parameters
Parameters
pairs: { key: string; value: any }[]
Optional valueGetter: (propertyName: string, propertyValue: TValue) => TValue
- (propertyName: string, propertyValue: TValue): TValue
Parameters
propertyName: string
propertyValue: TValue
Returns TValue
Returns null | Map<string, TValue>
Static getObject
- getObject(map: Map<string | number, any>): {}
Parameters
map: Map<string | number, any>
Returns {}
static members for @type {Map<K, V>}