Create a new Map containing all elements from the source map that pass the provided test predicate.
source map
function to test each element of source map
Create a new Map containing all elements from the source map that pass the provided test predicate.
Param: map
source map
Param: predicate
function to test each element of source map