i use Angularjs. I have next data e.g:
let filters = {
'async':[3,7],
'gpu_freq':[400,500]
};
Is there a better way to get the following combination then many loops?
[{
'async': 3,
'gpu_freq': 400
},{
'async': 3,
'gpu_freq': 50
},{
'async': 7,
'gpu_freq': 400
},{
'async': 7,
'gpu_freq': 500
}]
Number of filters can be different