JSFiddle - React, Tailwind, and code Playground
JavaScript
response = { data:
[ { id: '28793268096',
user_id: '71092938',
game_id: '488552',
community_ids: [],
type: 'live',
title: 'NEW EVENT POG ~ twitter.com/xqc',
viewer_count: 9143,
started_at: '2018-05-22T17:09:12Z',
language: 'en',
thumbnail_url: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_xqcow-{width}x{height}.jpg' },
{ id: '28792267216',
user_id: '23220337',
game_id: '488552',
community_ids: [Array],
type: 'live',
title: 'Overwatch Ranked Season 2 Episode 16: Panic! On The Payload | !charity | !patch',
viewer_count: 2332,
started_at: '2018-05-22T15:25:47Z',
language: 'en',
thumbnail_url: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_emongg-{width}x{height}.jpg' } ],
pagination: { cursor: 'eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6Mn19' } }
response.data.forEach((el, i) => {
console.log(el.id);
});
for(var i in response.data){
console.log(response.data[i].id);
}