{"action":"opened","issue":{"url":"https://api.github.com/repos/30-seconds/30-seconds-of-code/issues/864","repository_url":"https://api.github.com/repos/30-seconds/30-seconds-of-code","labels_url":"https://api.github.com/repos/30-seconds/30-seconds-of-code/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/30-seconds/30-seconds-of-code/issues/864/comments","events_url":"https://api.github.com/repos/30-seconds/30-seconds-of-code/issues/864/events","html_url":"https://github.com/30-seconds/30-seconds-of-code/issues/864","id":374900395,"node_id":"MDU6SXNzdWUzNzQ5MDAzOTU=","number":864,"title":"Currying / order of parameters","user":{"login":"sQVe","id":2284724,"node_id":"MDQ6VXNlcjIyODQ3MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2284724?v=4","gravatar_id":"","url":"https://api.github.com/users/sQVe","html_url":"https://github.com/sQVe","followers_url":"https://api.github.com/users/sQVe/followers","following_url":"https://api.github.com/users/sQVe/following{/other_user}","gists_url":"https://api.github.com/users/sQVe/gists{/gist_id}","starred_url":"https://api.github.com/users/sQVe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sQVe/subscriptions","organizations_url":"https://api.github.com/users/sQVe/orgs","repos_url":"https://api.github.com/users/sQVe/repos","events_url":"https://api.github.com/users/sQVe/events{/privacy}","received_events_url":"https://api.github.com/users/sQVe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-29T08:10:19Z","updated_at":"2018-10-29T08:10:19Z","closed_at":null,"author_association":"NONE","body":"I write JavaScript mostly in a functional manner and often use currying. From this perspective there are issues with many of the `30-seconds-of-code` snippets. An example is:\r\n\r\n```\r\nexport const any = (arr, fn = Boolean) => arr.some(fn);\r\n```\r\nIt is not possible to use this together with `compose` or `pipe` because it's not taking the `arr` as the last parameter. Swapping the parameters would of course remove the default `Boolean` of `fn` but I, personally, do not see a problem with that. I would greatly prefer it to have a sensible parameter order.\r\n"}}
{"actor":{"display_login":"sQVe"}}