{"action":"created","issue":{"url":"https://api.github.com/repos/bendrucker/smallest/issues/1","labels_url":"https://api.github.com/repos/bendrucker/smallest/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bendrucker/smallest/issues/1/comments","events_url":"https://api.github.com/repos/bendrucker/smallest/issues/1/events","html_url":"https://github.com/bendrucker/smallest/pull/1","id":107376374,"number":1,"title":"refactor(smallest): use Math.min","user":{"login":"gdi2290","id":1016365,"avatar_url":"https://avatars.githubusercontent.com/u/1016365?v=3","gravatar_id":"","url":"https://api.github.com/users/gdi2290","html_url":"https://github.com/gdi2290","followers_url":"https://api.github.com/users/gdi2290/followers","following_url":"https://api.github.com/users/gdi2290/following{/other_user}","gists_url":"https://api.github.com/users/gdi2290/gists{/gist_id}","starred_url":"https://api.github.com/users/gdi2290/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdi2290/subscriptions","organizations_url":"https://api.github.com/users/gdi2290/orgs","repos_url":"https://api.github.com/users/gdi2290/repos","events_url":"https://api.github.com/users/gdi2290/events{/privacy}","received_events_url":"https://api.github.com/users/gdi2290/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-20T06:45:51Z","updated_at":"2015-09-20T07:48:54Z","closed_at":"2015-09-20T07:48:51Z","pull_request":{"url":"https://api.github.com/repos/bendrucker/smallest/pulls/1","html_url":"https://github.com/bendrucker/smallest/pull/1","diff_url":"https://github.com/bendrucker/smallest/pull/1.diff","patch_url":"https://github.com/bendrucker/smallest/pull/1.patch"},"body":"This would just be `Math.min` if you didn't have the feature for passing an array. If the native `Math.min` function is slow then you can use this algorithm\r\n\r\n```javascript\r\nfunction smallest () {\r\n var values = Array.isArray(arguments[0]) ? arguments[0] : arguments;\r\n for (var i = 0, max; i < values.length; i++) {\r\n   max = max < values[i] ? max : values[i];\r\n }\r\n return max;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/bendrucker/smallest/issues/comments/141756096","html_url":"https://github.com/bendrucker/smallest/pull/1#issuecomment-141756096","issue_url":"https://api.github.com/repos/bendrucker/smallest/issues/1","id":141756096,"user":{"login":"bendrucker","id":808808,"avatar_url":"https://avatars.githubusercontent.com/u/808808?v=3","gravatar_id":"","url":"https://api.github.com/users/bendrucker","html_url":"https://github.com/bendrucker","followers_url":"https://api.github.com/users/bendrucker/followers","following_url":"https://api.github.com/users/bendrucker/following{/other_user}","gists_url":"https://api.github.com/users/bendrucker/gists{/gist_id}","starred_url":"https://api.github.com/users/bendrucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendrucker/subscriptions","organizations_url":"https://api.github.com/users/bendrucker/orgs","repos_url":"https://api.github.com/users/bendrucker/repos","events_url":"https://api.github.com/users/bendrucker/events{/privacy}","received_events_url":"https://api.github.com/users/bendrucker/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T07:48:54Z","updated_at":"2015-09-20T07:48:54Z","body":"Thanks!"}}