1.0.0 • Published 4 years ago

map-omit v1.0.0

Weekly downloads
-
License
Unlicense
Repository
gitlab
Last release
4 years ago

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
1.0.0

4 years ago