Skip to content

anshulk/one-from-each

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
]

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published