map-omit
Remove keys Map
s. Similar to Lodash's omit
, but for Map
s.
import mapOmit from "map-omit";
const myMap = new Map([
["foo", 1],
["bar", 2],
["baz", 3],
]);
const omitted = mapOmit(myMap, ["bar", "baz"]);
omitted.has("bar");
// => false