The question it's not so relevant but what I want to achieve is the next :
var some_array = [Modernizr.json, Modernizr.csstransforms];
var tests = function() {
for (var i = some_array .length - 1; i >= 0; i--) {
...
};
return Modernizr.json && Modernizr.csstransforms;
};
I keep thinking of the logic that would do what I tried to show you, but I cannot figure it out. Basically I need to loop the array of tests and return a boolean operation between the tests, to be more specific I want to take the array [Modernizr.json, Modernizr.csstransforms] and I want to return Modernizr.json && Modernizr.csstransforms and so on ( if there are more values in the array ).
var tests? no, it isn't, should it be ?some_array.join()?&&) between the array values ... isn't this clear enough ? because I have no idea how to explain this in any other way (: