map-omit
v1.0.0
Published
Remove keys from Maps
Readme
map-omit
Remove keys Maps. Similar to Lodash's omit, but for Maps.
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