{"action":"opened","issue":{"url":"https://api.github.com/repos/bahmutov/obind/issues/4","repository_url":"https://api.github.com/repos/bahmutov/obind","labels_url":"https://api.github.com/repos/bahmutov/obind/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/bahmutov/obind/issues/4/comments","events_url":"https://api.github.com/repos/bahmutov/obind/issues/4/events","html_url":"https://github.com/bahmutov/obind/issues/4","id":139703306,"number":4,"title":"Describe how useful with destructuring","user":{"login":"bahmutov","id":2212006,"avatar_url":"https://avatars.githubusercontent.com/u/2212006?v=3","gravatar_id":"","url":"https://api.github.com/users/bahmutov","html_url":"https://github.com/bahmutov","followers_url":"https://api.github.com/users/bahmutov/followers","following_url":"https://api.github.com/users/bahmutov/following{/other_user}","gists_url":"https://api.github.com/users/bahmutov/gists{/gist_id}","starred_url":"https://api.github.com/users/bahmutov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahmutov/subscriptions","organizations_url":"https://api.github.com/users/bahmutov/orgs","repos_url":"https://api.github.com/users/bahmutov/repos","events_url":"https://api.github.com/users/bahmutov/events{/privacy}","received_events_url":"https://api.github.com/users/bahmutov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bahmutov/obind/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-09T21:18:18Z","updated_at":"2016-03-09T21:18:18Z","closed_at":null,"body":"Like this example\r\n```js\r\nfunction mul({a, b}) { console.log(a, b); return a * b }\r\nconsole.log(mul.length) // 1\r\n;(function useBind() {\r\n  var by2 = mul.bind(null, 2)\r\n  by2({b: 3})\r\n}())\r\n;(function useObind() {\r\n  var by2 = obind(mul, {a: 2})\r\n  by2({b: 3})\r\n}())\r\n```"}}