I have a for loop that pushes the ids of the items in the array into a new array, however Ruby is different from JavaScript and I can't seem to figure out how to accomplish this, here's how i did it in ruby:
what is the equivalent in MV?
Code:
for items_array.each do |i|
new_array.push($data_items[i].id)
end