kenany / node-resteemo

RESTeemo API wrapper for Node.js
https://npmjs.org/package/resteemo
MIT License
4 stars 1 forks source link

Allow passing an Object for platform and summoner #3

Open kenany opened 11 years ago

kenany commented 11 years ago
teemo.player.recentGames({platform: 'euw', summoner: 'guardsmanbob'}, function(err, games) {
  if (err) throw err;

  // do stuff with `games`
});
kenany commented 11 years ago

I'm having trouble imagining a use case for this. In the interest of shipping 2.0, I'll leave this issue open until anyone in the distant future proposes a use for this feature.

kenany commented 11 years ago

From what I can tell, something like this is primarily done when a function has a lot of arguments, and it is easier for developers to just pass an Object with all the arguments they want instead of doing something(arg1, arg2, arg3, arg4, arg5).