I want to insert objects in an array but it does not work
$(this).find("input").each(function (index) {
console.log('INDEX', index);
arreglo.push({index: $(this).val()});
});
arreglo.push({index:
in this part index is not recognized, why?