filterWithKey
filterWithKey<
K,A>(predicate): (m) =>ReadonlyMap<K,A>
Defined in: Utils/Dict.ts:296
Returns a new dictionary containing only the entries for which the predicate returns true.
The predicate also receives the key.
Type Parameters
Section titled “Type Parameters”K
A
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(key, a) => boolean
Returns
Section titled “Returns”(
m):ReadonlyMap<K,A>
Parameters
Section titled “Parameters”ReadonlyMap<K, A>
Returns
Section titled “Returns”ReadonlyMap<K, A>