i'd like to print every iteration in my loop (1,2,3,4,5). But at this moment, it's only printing the size of my array (5).
for (var key in mapParseJson.background) {
//sequelize
refModelBedrawnins.find({
where: ['POS_TILE_BE_DRAW_IN =? ',mapParseJson.background[key] [0]],
include: [{ model: refModelDrawableObject }]
}).success(function(result) {
// I'd like to print every iteration right here
console.log(key);
});
}