Narcissistic Passion Minified

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

    2.1.1 • Public • Published

    just-map-object

    Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

    🍦 Try it

    npm install just-map-object
    yarn add just-map-object

    Map an object, passing key and value to predicates

    import map from 'just-map-object';
    
    // DEPRECATED: use just-map-values
    map({a: 3, b: 5, c: 9}, (key, value) => value + 1); // {a: 4, b: 6, c: 10}
    map({a: 3, b: 5, c: 9}, (key, value) => key); // {a: 'a', b: 'b', c: 'c'}
    map({a: 3, b: 5, c: 9}, (key, value) => key + value); // {a: 'a3', b: 'b5', c: 'c9'}```

    Install

    npm i just-map-object

    DownloadsWeekly Downloads

    1,044

    Version

    2.1.1

    License

    MIT

    Unpacked Size

    4.87 kB

    Total Files

    9

    Last publish

    Collaborators

    • angus-c