Newfangled Package Modernizer

    map-omit
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    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

    Keywords

    Install

    npm i map-omit

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    Unlicense

    Unpacked Size

    3.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • evanhahn