I've an object like;
{ '6': { stream: { twitch: [Object] } },
'7': { stream: { twitch: [Object] } },
'8': { stream: { twitch: [Object] } },
'9': { stream: { twitch: [Object] } },
'10': { stream: { twitch: [Object] } },
'11': { stream: { twitch: [Object] } } }
I want to iterate over it like;
return Promise.map(myObj, function(minute, minuteIndex) {
so basically minute should hold the data and minuteIndex should be holding the index.
I can do it with lodash but bluebird can't somehow.
_.forEach(hour.minutes, function(minute, minuteIndex) {
I know that this code was working before but now can't get it so.
Any ideas?