I've have the function:
function getCotas() {
var values = [];
values['first'] = 10;
$('.loop.scota').each(function(key, value) {
var id = key + 1;
values[$('.sdate.id' + id).text()] = parseInt($(this).text());
});
return values;
}
The output is the array with the keys:
[first: 160, 01/12/2017: 157, 04/12/2017: 153]
What I need is just the values of the array, without the keys:
[160,157,153]
I already tried to do a loop with the values, like this answer, but always return an empty [] or an error with the functions.
Someone knows how to resolve this problem?