[Solved] Restructure Javascript Object by grouping and Cartesian product
[ad_1] First, create an object using the given data and collect the keys and their values. { A: [1, 2], C: [“FOO”, “BAR”] } Then, get the Cartesian product of this object. The function getCartesian separates all key/value pairs and builds a new Cartesian product by iterating over the values, if an array with objects … Read more