filterWithKey
filterWithKey<
K,A>(predicate): (m) =>ReadonlyMap<K,A>
Defined in: Data/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>