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