How can I select only certain parts of the array?

client.api({
    url: "https://api.twitch.tv/kraken/channels/userid",
    method: "GET",
    headers: {
        "Accept": "application/vnd.twitchtv.v5+json",
        "Authorization": "oauth:key",
        "Client-ID": "client-id"
    }
}, (err, res, body) => {
    console.log(body.followers);
});
1 Like