findInMap
A find function that iterates through a map and runs a provided pred function on each value. Returning the found value or undefined
Last updated
A find function that iterates through a map and runs a provided pred function on each value. Returning the found value or undefined
Last updated
Name
Type
Description
pred
Function
The pred function used for each value in the map
map
Map
The map we are to search through
Type
Description
Maybe Any
Whatever the value was that the function found, or undefined
if nothing is found