Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
how to get all combinations possible

Team, I tried so much to get all the combinations possible from a dynamic choices using jQuery without success. for example I have the below collection extracted after user selection.

{
    "color": [
        "Black",
        "White"
    ],
    "size": [
        "S",
        "M"
    ],
    "material": [
        "Cotton",
        "Leather"
    ]
}

What I want as result is all the possible combination like the below.

{
        [
            "Black", "S", "Cotton"
        ],
        [
            "Black", "M", "Cotton"
        ],
        [
            "Black", "S", "Leather"
        ],
        [
            "Black", "M", "Leather"
        ],
        [
            "White", "S", "Cotton"
        ],
        [
            "White", "M", "Cotton"
        ],
        [
            "White", "S", "Leather"
        ],
        [
            "White", "M", "Leather"
        ]
    }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!