function check() { var ex = []; for (var key in recipes) { for(var i in recipes[key]) { if (recipes[key][i] > components[i]) ex.push(i); } } }