GET trends/place dont give me 50 result but only 2 the other are undefined i dont know why
i post my code
function getTrend() {
twit.get('trends/place', {
id: 1, // world
exclude: 'hashtags' // remove hashtag
},
(err, data, response) => {
if (err) {
console.log(err.stack)
}
for (var i = 0; i < 50; i++) {
console.log(data[0].trends[i])
}
}
)
}
the console.log show me only 2 result the other are undefined are there problems in twitter api service???
Hope someone can help me