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>.
Since
2.0.0