/** * Applies the specified partial function to each entry of the map, filtering * out `None` values. * * @tsplus static ImmutableMap.Aspects filterMap * @tsplus pipeable ImmutableMap filterMap */ export function filterMap(pf: (value: V) => Maybe) { return (self: ImmutableMap): ImmutableMap => self.filterMapWithIndex((_, value) => pf(value)) }