Deletes all key/values from map where value matches value, with optional comparer. Mutates map.
value
import { Maps } from "https://unpkg.com/ixfx/dist/collections.js"// Compare fruits based on their colour propertyconst colourComparer = (a, b) => a.colour === b.colour;// Deletes all values where .colour = `red`Maps.deleteByValue(map, { colour: `red` }, colourComparer); Copy
import { Maps } from "https://unpkg.com/ixfx/dist/collections.js"// Compare fruits based on their colour propertyconst colourComparer = (a, b) => a.colour === b.colour;// Deletes all values where .colour = `red`Maps.deleteByValue(map, { colour: `red` }, colourComparer);
Deletes all key/values from map where value matches
value
, with optional comparer. Mutates map.