Have ideas to improve npm?Join in the discussion! »

    one-from-each

    1.1.0 • Public • Published

    one-from-each

    Get all possibilities taking one value for each key ( from an array of vals for that key )

    Input :

    { 
        "key1" : ["val1", "val2"],
        "key2" : ["val1"]
    }

    Output :

    [
        {
            "key1" : "val1",
            "key2"  : "val1"
        },
        {
            "key1" : "val2",
            "key2"  : "val1"
        }
    ]

    Keywords

    Install

    npm i one-from-each

    DownloadsWeekly Downloads

    2

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • avatar