I have this code
var fields = [
'ile_sprzedal', 'ile_zarobil', 'srednia_kwota', 'konwersja', 'punkty'
];
fields.each(function(i, v){
var sum = sum_ + v;
sum = 0;
var it = it_ + v;
it = 0;
});
and this error: TypeError: Object [object Array] has no method 'each'
. And the question is - How to call each method on some array?