{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/720","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/720/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/720/events","html_url":"https://github.com/petkaantonov/bluebird/issues/720","id":98885922,"number":720,"title":"Wrapper to Join on all function's arguments","user":{"login":"mdarveau","id":390071,"avatar_url":"https://avatars.githubusercontent.com/u/390071?v=3","gravatar_id":"","url":"https://api.github.com/users/mdarveau","html_url":"https://github.com/mdarveau","followers_url":"https://api.github.com/users/mdarveau/followers","following_url":"https://api.github.com/users/mdarveau/following{/other_user}","gists_url":"https://api.github.com/users/mdarveau/gists{/gist_id}","starred_url":"https://api.github.com/users/mdarveau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdarveau/subscriptions","organizations_url":"https://api.github.com/users/mdarveau/orgs","repos_url":"https://api.github.com/users/mdarveau/repos","events_url":"https://api.github.com/users/mdarveau/events{/privacy}","received_events_url":"https://api.github.com/users/mdarveau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T04:21:17Z","updated_at":"2015-08-04T20:02:29Z","closed_at":null,"body":"Hi,\r\n\r\nFirst of all, thank you for this excellent library.\r\n\r\nWhen I have a function that can receive a resolved value or a promise, I often find myself doing the following:\r\n```\r\nexports.doSomething = ( valueOrPromise1, valueOrPromise2 ) ->\r\n  Bluebird.join valueOrPromise1, valueOrPromise2, ( value1, value2 ) ->\r\n    value1.something()\r\n    value2.somethingElse()\r\n```\r\n\r\nI finally created a little wrapper that automatically join all my functions params and then call the function that works on resolved values (coffeescript + lodash):\r\n```\r\njoinArgs = (f)->\r\n  _.partialRight(Bluebird.join, f);\r\n\r\nexports.doSomething = joinArgs ( value ) ->\r\n  value.something()\r\n```\r\n\r\nWhat do you think of adding the `joinArgs` utility to Bluebird? I can work out the PR but don't want to waste anyone's time if you don't think it belongs to the lib. Maybe joinWrap or wrapJoin would be a better name?"},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/127740104","html_url":"https://github.com/petkaantonov/bluebird/issues/720#issuecomment-127740104","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/720","id":127740104,"user":{"login":"bergus","id":1146478,"avatar_url":"https://avatars.githubusercontent.com/u/1146478?v=3","gravatar_id":"","url":"https://api.github.com/users/bergus","html_url":"https://github.com/bergus","followers_url":"https://api.github.com/users/bergus/followers","following_url":"https://api.github.com/users/bergus/following{/other_user}","gists_url":"https://api.github.com/users/bergus/gists{/gist_id}","starred_url":"https://api.github.com/users/bergus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergus/subscriptions","organizations_url":"https://api.github.com/users/bergus/orgs","repos_url":"https://api.github.com/users/bergus/repos","events_url":"https://api.github.com/users/bergus/events{/privacy}","received_events_url":"https://api.github.com/users/bergus/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T20:02:29Z","updated_at":"2015-08-04T20:02:29Z","body":"`lift` would be an appropriate name."}}