castMap<K, V>(obj): Map<K, V>
Casts a value to a Map type for tests.
Type Parametersβ
K: K = stringβ
The key type.
V: V = anyβ
The value type.
Parametersβ
obj: unknownβ
The value to cast.
Returns: Map<K, V>β
The value cast to Map<K, V>.
2.0.0