Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Allow passing an Object for platform and summoner #3

Open
kenany opened this issue Jun 4, 2013 · 2 comments
Open

Allow passing an Object for platform and summoner #3

kenany opened this issue Jun 4, 2013 · 2 comments
Labels

Comments

@kenany
Copy link
Owner

kenany commented Jun 4, 2013

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

  // do stuff with `games`
});
@kenany
Copy link
Owner Author

kenany commented Jun 20, 2013

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
Copy link
Owner Author

kenany commented Aug 14, 2013

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant