{"action":"created","issue":{"url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017/issues/2","repository_url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017","labels_url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017/issues/2/comments","events_url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017/issues/2/events","html_url":"https://github.com/muzonchiki/homeWorks-JS_112017/issues/2","id":299677169,"number":2,"title":"А если один из аргументов это функция к которой должен примениться `fn`? :)","user":{"login":"proweber1","id":12970202,"avatar_url":"https://avatars0.githubusercontent.com/u/12970202?v=4","gravatar_id":"","url":"https://api.github.com/users/proweber1","html_url":"https://github.com/proweber1","followers_url":"https://api.github.com/users/proweber1/followers","following_url":"https://api.github.com/users/proweber1/following{/other_user}","gists_url":"https://api.github.com/users/proweber1/gists{/gist_id}","starred_url":"https://api.github.com/users/proweber1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proweber1/subscriptions","organizations_url":"https://api.github.com/users/proweber1/orgs","repos_url":"https://api.github.com/users/proweber1/repos","events_url":"https://api.github.com/users/proweber1/events{/privacy}","received_events_url":"https://api.github.com/users/proweber1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-23T11:10:58Z","updated_at":"2018-02-23T12:56:26Z","closed_at":null,"author_association":"NONE","body":"https://github.com/muzonchiki/homeWorks-JS_112017/blob/69028e0a7a869c67f7279926508c03cf4d2f02a8/src/index.js#L85"},"comment":{"url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017/issues/comments/368002014","html_url":"https://github.com/muzonchiki/homeWorks-JS_112017/issues/2#issuecomment-368002014","issue_url":"https://api.github.com/repos/muzonchiki/homeWorks-JS_112017/issues/2","id":368002014,"user":{"login":"proweber1","id":12970202,"avatar_url":"https://avatars0.githubusercontent.com/u/12970202?v=4","gravatar_id":"","url":"https://api.github.com/users/proweber1","html_url":"https://github.com/proweber1","followers_url":"https://api.github.com/users/proweber1/followers","following_url":"https://api.github.com/users/proweber1/following{/other_user}","gists_url":"https://api.github.com/users/proweber1/gists{/gist_id}","starred_url":"https://api.github.com/users/proweber1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proweber1/subscriptions","organizations_url":"https://api.github.com/users/proweber1/orgs","repos_url":"https://api.github.com/users/proweber1/repos","events_url":"https://api.github.com/users/proweber1/events{/privacy}","received_events_url":"https://api.github.com/users/proweber1/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T12:56:26Z","updated_at":"2018-02-23T12:56:26Z","author_association":"NONE","body":"@b-ars07 И че?\r\n\r\n```\r\n Функция принимает заранее неизветсное количество аргументов, первым из которых является функция fn\r\n Функция должна поочередно запусти fn для каждого переданного аргумента (кроме самой fn)\r\n Функция должна вернуть массив аргументов, для которых fn выбросила исключение\r\n```\r\nГде гарантия того чтобы третий аргумент не будет функцией? Четвертый, пятый? Где сказано что во всем списке аргументов будет только одна функция и это `fn`? Нигде! Если я вызову ее с такими аргументами\r\n\r\n```javascript\r\n\r\n// Например\r\nconst fn = (val) => {\r\n     if (typeof val === \"function\" && !val()) {\r\n           throw new Error('False result of given function');\r\n     }\r\n     return !!val;\r\n}\r\n\r\nreturnBadArguments(fn, 0, 1, () => Math.random() > 0.2);\r\n```\r\nТо че будет? Для моей fn не вызовется последний аргумент, ибо функция\r\n"}}
{"actor":{"display_login":"proweber1"}}