Network Processor Module

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

    2.2.1 • Public • Published

    just-flip-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-flip-object
    yarn add just-flip-object

    Flip the keys and values

    import flip from 'just-flip-object';
    
    // flip the key and value
    flip({a: 'x', b: 'y', c: 'z'}); // {x: 'a', y: 'b', z: 'c'}
    flip({a: 1, b: 2, c: 3}); // {'1': 'a', '2': 'b', '3': 'c'}
    flip({a: false, b: true}); // {false: 'a', true: 'b'}

    Install

    npm i just-flip-object

    DownloadsWeekly Downloads

    38

    Version

    2.2.1

    License

    MIT

    Unpacked Size

    4.55 kB

    Total Files

    9

    Last publish

    Collaborators

    • angus-c