danielwerg / r6api.js

🍫 Node.js wrapper around Rainbow Six Siege APIs
https://npm.im/r6api.js
MIT License
111 stars 19 forks source link

Why is the response of getRanks not an array? #69

Closed BigPig22 closed 3 years ago

BigPig22 commented 3 years ago

First of all thanks for all the hardwork put in to this!

Title says it basically, it is really hard to use the seasonal/rank sats in some environments (those that I am using). It begins basically with the problem that you can't use numbers as names to select specific data from the json. If it was an array you could just iterate through it and work very easily with the data.

Is there a limitation on Ubisofts side or what was the decision to do it that way? Or does anyone has any tips to work properly with the data?

Thanks!