{"action":"created","comment":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments/40509997","id":40509997,"diff_hunk":"@@ -7,15 +7,31 @@ um único parâmetro como argumento. Essa função deve retornar `true` se o\n equivalente booleano para o valor passado no argumento for `true`, ou `false`\n para o contrário.\n */\n-?\n+var isTruthy = function (x) {\n+return x ? true : false;\n+};\n \n // Invoque a função criada acima, passando todos os tipos de valores `falsy`.\n-?\n+ isTruthy(0); // false\n+ isTruthy(-0);//  false\n+ isTruthy(undefined); //  false\n+ isTruthy(!!false); // false\n+ isTruthy(NaN); // false","path":"challenge-04/README.md","position":15,"original_position":15,"commit_id":"29748bfe8a7fd6488abe072ecfaac122812f7b2b","original_commit_id":"29748bfe8a7fd6488abe072ecfaac122812f7b2b","user":{"login":"fdaciuk","id":487669,"avatar_url":"https://avatars.githubusercontent.com/u/487669?v=3","gravatar_id":"","url":"https://api.github.com/users/fdaciuk","html_url":"https://github.com/fdaciuk","followers_url":"https://api.github.com/users/fdaciuk/followers","following_url":"https://api.github.com/users/fdaciuk/following{/other_user}","gists_url":"https://api.github.com/users/fdaciuk/gists{/gist_id}","starred_url":"https://api.github.com/users/fdaciuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdaciuk/subscriptions","organizations_url":"https://api.github.com/users/fdaciuk/orgs","repos_url":"https://api.github.com/users/fdaciuk/repos","events_url":"https://api.github.com/users/fdaciuk/events{/privacy}","received_events_url":"https://api.github.com/users/fdaciuk/received_events","type":"User","site_admin":false},"body":"-1\r\nFaltam 2 tipos ;)","created_at":"2015-09-27T21:24:26Z","updated_at":"2015-09-27T21:24:26Z","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/338#discussion_r40509997","pull_request_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338","_links":{"self":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments/40509997"},"html":{"href":"https://github.com/da2k/curso-javascript-ninja/pull/338#discussion_r40509997"},"pull_request":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338"}}},"pull_request":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338","id":45487254,"html_url":"https://github.com/da2k/curso-javascript-ninja/pull/338","diff_url":"https://github.com/da2k/curso-javascript-ninja/pull/338.diff","patch_url":"https://github.com/da2k/curso-javascript-ninja/pull/338.patch","issue_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/338","number":338,"state":"open","locked":false,"title":"Challenge 04","user":{"login":"LucasCMota","id":13294634,"avatar_url":"https://avatars.githubusercontent.com/u/13294634?v=3","gravatar_id":"","url":"https://api.github.com/users/LucasCMota","html_url":"https://github.com/LucasCMota","followers_url":"https://api.github.com/users/LucasCMota/followers","following_url":"https://api.github.com/users/LucasCMota/following{/other_user}","gists_url":"https://api.github.com/users/LucasCMota/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasCMota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasCMota/subscriptions","organizations_url":"https://api.github.com/users/LucasCMota/orgs","repos_url":"https://api.github.com/users/LucasCMota/repos","events_url":"https://api.github.com/users/LucasCMota/events{/privacy}","received_events_url":"https://api.github.com/users/LucasCMota/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-20T00:35:52Z","updated_at":"2015-09-27T21:24:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37deb851b1986b1f83a82e4fa5e38f316b1cdfdc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338/commits","review_comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338/comments","review_comment_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments{/number}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/338/comments","statuses_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/statuses/29748bfe8a7fd6488abe072ecfaac122812f7b2b","head":{"label":"LucasCMota:challenge-04","ref":"challenge-04","sha":"29748bfe8a7fd6488abe072ecfaac122812f7b2b","user":{"login":"LucasCMota","id":13294634,"avatar_url":"https://avatars.githubusercontent.com/u/13294634?v=3","gravatar_id":"","url":"https://api.github.com/users/LucasCMota","html_url":"https://github.com/LucasCMota","followers_url":"https://api.github.com/users/LucasCMota/followers","following_url":"https://api.github.com/users/LucasCMota/following{/other_user}","gists_url":"https://api.github.com/users/LucasCMota/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasCMota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasCMota/subscriptions","organizations_url":"https://api.github.com/users/LucasCMota/orgs","repos_url":"https://api.github.com/users/LucasCMota/repos","events_url":"https://api.github.com/users/LucasCMota/events{/privacy}","received_events_url":"https://api.github.com/users/LucasCMota/received_events","type":"User","site_admin":false},"repo":{"id":42363450,"name":"curso-javascript-ninja","full_name":"LucasCMota/curso-javascript-ninja","owner":{"login":"LucasCMota","id":13294634,"avatar_url":"https://avatars.githubusercontent.com/u/13294634?v=3","gravatar_id":"","url":"https://api.github.com/users/LucasCMota","html_url":"https://github.com/LucasCMota","followers_url":"https://api.github.com/users/LucasCMota/followers","following_url":"https://api.github.com/users/LucasCMota/following{/other_user}","gists_url":"https://api.github.com/users/LucasCMota/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasCMota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasCMota/subscriptions","organizations_url":"https://api.github.com/users/LucasCMota/orgs","repos_url":"https://api.github.com/users/LucasCMota/repos","events_url":"https://api.github.com/users/LucasCMota/events{/privacy}","received_events_url":"https://api.github.com/users/LucasCMota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LucasCMota/curso-javascript-ninja","description":"Curso Javascript Ninja","fork":true,"url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja","forks_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/forks","keys_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/teams","hooks_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/hooks","issue_events_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/issues/events{/number}","events_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/events","assignees_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/assignees{/user}","branches_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/branches{/branch}","tags_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/tags","blobs_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/languages","stargazers_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/stargazers","contributors_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/contributors","subscribers_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/subscribers","subscription_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/subscription","commits_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/issues/comments{/number}","contents_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/contents/{+path}","compare_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/merges","archive_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/downloads","issues_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/issues{/number}","pulls_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/labels{/name}","releases_url":"https://api.github.com/repos/LucasCMota/curso-javascript-ninja/releases{/id}","created_at":"2015-09-12T16:07:54Z","updated_at":"2015-09-13T15:11:22Z","pushed_at":"2015-09-25T00:14:52Z","git_url":"git://github.com/LucasCMota/curso-javascript-ninja.git","ssh_url":"git@github.com:LucasCMota/curso-javascript-ninja.git","clone_url":"https://github.com/LucasCMota/curso-javascript-ninja.git","svn_url":"https://github.com/LucasCMota/curso-javascript-ninja","homepage":"http://blog.da2k.com.br/curso-javascript-ninja/","size":267,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"da2k:master","ref":"master","sha":"deb9d28209252b2777370933a2cf7c8b79cc3287","user":{"login":"da2k","id":11011075,"avatar_url":"https://avatars.githubusercontent.com/u/11011075?v=3","gravatar_id":"","url":"https://api.github.com/users/da2k","html_url":"https://github.com/da2k","followers_url":"https://api.github.com/users/da2k/followers","following_url":"https://api.github.com/users/da2k/following{/other_user}","gists_url":"https://api.github.com/users/da2k/gists{/gist_id}","starred_url":"https://api.github.com/users/da2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da2k/subscriptions","organizations_url":"https://api.github.com/users/da2k/orgs","repos_url":"https://api.github.com/users/da2k/repos","events_url":"https://api.github.com/users/da2k/events{/privacy}","received_events_url":"https://api.github.com/users/da2k/received_events","type":"Organization","site_admin":false},"repo":{"id":30896610,"name":"curso-javascript-ninja","full_name":"da2k/curso-javascript-ninja","owner":{"login":"da2k","id":11011075,"avatar_url":"https://avatars.githubusercontent.com/u/11011075?v=3","gravatar_id":"","url":"https://api.github.com/users/da2k","html_url":"https://github.com/da2k","followers_url":"https://api.github.com/users/da2k/followers","following_url":"https://api.github.com/users/da2k/following{/other_user}","gists_url":"https://api.github.com/users/da2k/gists{/gist_id}","starred_url":"https://api.github.com/users/da2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da2k/subscriptions","organizations_url":"https://api.github.com/users/da2k/orgs","repos_url":"https://api.github.com/users/da2k/repos","events_url":"https://api.github.com/users/da2k/events{/privacy}","received_events_url":"https://api.github.com/users/da2k/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/da2k/curso-javascript-ninja","description":"Curso Javascript Ninja","fork":false,"url":"https://api.github.com/repos/da2k/curso-javascript-ninja","forks_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/forks","keys_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/teams","hooks_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/hooks","issue_events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/events{/number}","events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/events","assignees_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/assignees{/user}","branches_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/branches{/branch}","tags_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/tags","blobs_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/languages","stargazers_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/stargazers","contributors_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/contributors","subscribers_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/subscribers","subscription_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/subscription","commits_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/comments{/number}","contents_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/contents/{+path}","compare_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/merges","archive_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/downloads","issues_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues{/number}","pulls_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/labels{/name}","releases_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/releases{/id}","created_at":"2015-02-17T00:57:58Z","updated_at":"2015-09-25T07:04:16Z","pushed_at":"2015-09-26T22:13:40Z","git_url":"git://github.com/da2k/curso-javascript-ninja.git","ssh_url":"git@github.com:da2k/curso-javascript-ninja.git","clone_url":"https://github.com/da2k/curso-javascript-ninja.git","svn_url":"https://github.com/da2k/curso-javascript-ninja","homepage":"http://blog.da2k.com.br/curso-javascript-ninja/","size":2215,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":49,"forks":42,"open_issues":49,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338"},"html":{"href":"https://github.com/da2k/curso-javascript-ninja/pull/338"},"issue":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/338"},"comments":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/338/comments"},"review_comments":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338/comments"},"review_comment":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/338/commits"},"statuses":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/statuses/29748bfe8a7fd6488abe072ecfaac122812f7b2b"}}}}