{"action":"created","comment":{"url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/comments/89480852","pull_request_review_id":10025617,"id":89480852,"diff_hunk":"@@ -0,0 +1,249 @@\n+/** Extend string class in javascript to support more string manipulation features */\n+\n+const ExtendString = {\n+\n+  /*\n+  * Checks if the argument contains vowels\n+  * @param {string}\n+  * @returns {boolean}\n+  * @example\n+  * // returns true\n+  * 'hello'.hasVowels();\n+  */\n+  hasVowels() {\n+    return /[aeiou]/i.test(this);\n+  },\n+\n+  /*\n+  * Converts the argument to uppercase characters\n+  * @param {string}\n+  * @returns {string}\n+  * @example\n+  * // returns 'HELLO'\n+  * 'hello'.toUpper();\n+  */\n+  toUpper() {\n+    const len = this.length;\n+    let cap = '';\n+    for (let i = 0; i < len; i += 1) {\n+      if (this[i].match(/[a-z]/)) {\n+        cap += String.fromCharCode(this.charCodeAt(i) - 32);\n+      } else {\n+        cap += this[i];\n+      }\n+    }\n+    return cap;\n+  },\n+\n+  /*\n+  * Converts the argument to lowercase characters\n+  * @param {string}\n+  * @returns {string}\n+  * @example\n+  * // returns 'hello'\n+  * 'HELLO'.toLower();\n+  */\n+  toLower() {\n+    const len = this.length;\n+    let lower = '';\n+    for (let i = 0; i < len; i += 1) {\n+      if (this[i].match(/[A-Z]/)) {\n+        lower += String.fromCharCode(this.charCodeAt(i) + 32);\n+      } else {\n+        lower += this[i];\n+      }\n+    }\n+    return lower;\n+  },\n+\n+  /*\n+  * Converts the  first character of the argument to uppercase\n+  * @param {string}\n+  * @returns {string}\n+  * @example\n+  * // returns 'Hello'\n+  * 'hello'.ucFirst();\n+  */\n+  ucFirst() {\n+    return (this[0].toUpper() + this.slice(1));","path":"src/string.js","position":68,"original_position":68,"commit_id":"fb82d15b220d5dad33f9843670c6d346d045cb80","original_commit_id":"fb82d15b220d5dad33f9843670c6d346d045cb80","user":{"login":"andela-cnwankwo","id":20873892,"avatar_url":"https://avatars.githubusercontent.com/u/20873892?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwankwo","html_url":"https://github.com/andela-cnwankwo","followers_url":"https://api.github.com/users/andela-cnwankwo/followers","following_url":"https://api.github.com/users/andela-cnwankwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwankwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwankwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwankwo/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwankwo/orgs","repos_url":"https://api.github.com/users/andela-cnwankwo/repos","events_url":"https://api.github.com/users/andela-cnwankwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwankwo/received_events","type":"User","site_admin":false},"body":"Ok, I will work on it.","created_at":"2016-11-24T11:29:50Z","updated_at":"2016-11-24T11:29:50Z","html_url":"https://github.com/andela-cnwankwo/string-class/pull/1#discussion_r89480852","pull_request_url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/comments/89480852"},"html":{"href":"https://github.com/andela-cnwankwo/string-class/pull/1#discussion_r89480852"},"pull_request":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1","id":94972593,"html_url":"https://github.com/andela-cnwankwo/string-class/pull/1","diff_url":"https://github.com/andela-cnwankwo/string-class/pull/1.diff","patch_url":"https://github.com/andela-cnwankwo/string-class/pull/1.patch","issue_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/1","number":1,"state":"closed","locked":false,"title":"Extend String Class","user":{"login":"andela-cnwankwo","id":20873892,"avatar_url":"https://avatars.githubusercontent.com/u/20873892?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwankwo","html_url":"https://github.com/andela-cnwankwo","followers_url":"https://api.github.com/users/andela-cnwankwo/followers","following_url":"https://api.github.com/users/andela-cnwankwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwankwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwankwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwankwo/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwankwo/orgs","repos_url":"https://api.github.com/users/andela-cnwankwo/repos","events_url":"https://api.github.com/users/andela-cnwankwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwankwo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-23T10:01:27Z","updated_at":"2016-11-24T11:29:50Z","closed_at":"2016-11-23T10:02:57Z","merged_at":"2016-11-23T10:02:57Z","merge_commit_sha":"4a3182c7b42d1a1f141a4b0b34c09d9718eae244","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/1/comments","statuses_url":"https://api.github.com/repos/andela-cnwankwo/string-class/statuses/fb82d15b220d5dad33f9843670c6d346d045cb80","head":{"label":"andela-cnwankwo:develop","ref":"develop","sha":"fb82d15b220d5dad33f9843670c6d346d045cb80","user":{"login":"andela-cnwankwo","id":20873892,"avatar_url":"https://avatars.githubusercontent.com/u/20873892?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwankwo","html_url":"https://github.com/andela-cnwankwo","followers_url":"https://api.github.com/users/andela-cnwankwo/followers","following_url":"https://api.github.com/users/andela-cnwankwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwankwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwankwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwankwo/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwankwo/orgs","repos_url":"https://api.github.com/users/andela-cnwankwo/repos","events_url":"https://api.github.com/users/andela-cnwankwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwankwo/received_events","type":"User","site_admin":false},"repo":{"id":73799336,"name":"string-class","full_name":"andela-cnwankwo/string-class","owner":{"login":"andela-cnwankwo","id":20873892,"avatar_url":"https://avatars.githubusercontent.com/u/20873892?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwankwo","html_url":"https://github.com/andela-cnwankwo","followers_url":"https://api.github.com/users/andela-cnwankwo/followers","following_url":"https://api.github.com/users/andela-cnwankwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwankwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwankwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwankwo/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwankwo/orgs","repos_url":"https://api.github.com/users/andela-cnwankwo/repos","events_url":"https://api.github.com/users/andela-cnwankwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwankwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-cnwankwo/string-class","description":"Extend Sting class in javascript","fork":false,"url":"https://api.github.com/repos/andela-cnwankwo/string-class","forks_url":"https://api.github.com/repos/andela-cnwankwo/string-class/forks","keys_url":"https://api.github.com/repos/andela-cnwankwo/string-class/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-cnwankwo/string-class/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-cnwankwo/string-class/teams","hooks_url":"https://api.github.com/repos/andela-cnwankwo/string-class/hooks","issue_events_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/events{/number}","events_url":"https://api.github.com/repos/andela-cnwankwo/string-class/events","assignees_url":"https://api.github.com/repos/andela-cnwankwo/string-class/assignees{/user}","branches_url":"https://api.github.com/repos/andela-cnwankwo/string-class/branches{/branch}","tags_url":"https://api.github.com/repos/andela-cnwankwo/string-class/tags","blobs_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-cnwankwo/string-class/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-cnwankwo/string-class/languages","stargazers_url":"https://api.github.com/repos/andela-cnwankwo/string-class/stargazers","contributors_url":"https://api.github.com/repos/andela-cnwankwo/string-class/contributors","subscribers_url":"https://api.github.com/repos/andela-cnwankwo/string-class/subscribers","subscription_url":"https://api.github.com/repos/andela-cnwankwo/string-class/subscription","commits_url":"https://api.github.com/repos/andela-cnwankwo/string-class/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-cnwankwo/string-class/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-cnwankwo/string-class/contents/{+path}","compare_url":"https://api.github.com/repos/andela-cnwankwo/string-class/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-cnwankwo/string-class/merges","archive_url":"https://api.github.com/repos/andela-cnwankwo/string-class/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-cnwankwo/string-class/downloads","issues_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues{/number}","pulls_url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-cnwankwo/string-class/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-cnwankwo/string-class/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-cnwankwo/string-class/labels{/name}","releases_url":"https://api.github.com/repos/andela-cnwankwo/string-class/releases{/id}","deployments_url":"https://api.github.com/repos/andela-cnwankwo/string-class/deployments","created_at":"2016-11-15T09:45:31Z","updated_at":"2016-11-23T10:02:58Z","pushed_at":"2016-11-24T08:09:06Z","git_url":"git://github.com/andela-cnwankwo/string-class.git","ssh_url":"git@github.com:andela-cnwankwo/string-class.git","clone_url":"https://github.com/andela-cnwankwo/string-class.git","svn_url":"https://github.com/andela-cnwankwo/string-class","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andela-cnwankwo:master","ref":"master","sha":"4f3de27ab711b0f76250c8d496bd0d1f05e08664","user":{"login":"andela-cnwankwo","id":20873892,"avatar_url":"https://avatars.githubusercontent.com/u/20873892?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwankwo","html_url":"https://github.com/andela-cnwankwo","followers_url":"https://api.github.com/users/andela-cnwankwo/followers","following_url":"https://api.github.com/users/andela-cnwankwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwankwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwankwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwankwo/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwankwo/orgs","repos_url":"https://api.github.com/users/andela-cnwankwo/repos","events_url":"https://api.github.com/users/andela-cnwankwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwankwo/received_events","type":"User","site_admin":false},"repo":{"id":73799336,"name":"string-class","full_name":"andela-cnwankwo/string-class","owner":{"login":"andela-cnwankwo","id":20873892,"avatar_url":"https://avatars.githubusercontent.com/u/20873892?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwankwo","html_url":"https://github.com/andela-cnwankwo","followers_url":"https://api.github.com/users/andela-cnwankwo/followers","following_url":"https://api.github.com/users/andela-cnwankwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwankwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwankwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwankwo/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwankwo/orgs","repos_url":"https://api.github.com/users/andela-cnwankwo/repos","events_url":"https://api.github.com/users/andela-cnwankwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwankwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-cnwankwo/string-class","description":"Extend Sting class in javascript","fork":false,"url":"https://api.github.com/repos/andela-cnwankwo/string-class","forks_url":"https://api.github.com/repos/andela-cnwankwo/string-class/forks","keys_url":"https://api.github.com/repos/andela-cnwankwo/string-class/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-cnwankwo/string-class/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-cnwankwo/string-class/teams","hooks_url":"https://api.github.com/repos/andela-cnwankwo/string-class/hooks","issue_events_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/events{/number}","events_url":"https://api.github.com/repos/andela-cnwankwo/string-class/events","assignees_url":"https://api.github.com/repos/andela-cnwankwo/string-class/assignees{/user}","branches_url":"https://api.github.com/repos/andela-cnwankwo/string-class/branches{/branch}","tags_url":"https://api.github.com/repos/andela-cnwankwo/string-class/tags","blobs_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-cnwankwo/string-class/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-cnwankwo/string-class/languages","stargazers_url":"https://api.github.com/repos/andela-cnwankwo/string-class/stargazers","contributors_url":"https://api.github.com/repos/andela-cnwankwo/string-class/contributors","subscribers_url":"https://api.github.com/repos/andela-cnwankwo/string-class/subscribers","subscription_url":"https://api.github.com/repos/andela-cnwankwo/string-class/subscription","commits_url":"https://api.github.com/repos/andela-cnwankwo/string-class/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-cnwankwo/string-class/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-cnwankwo/string-class/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-cnwankwo/string-class/contents/{+path}","compare_url":"https://api.github.com/repos/andela-cnwankwo/string-class/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-cnwankwo/string-class/merges","archive_url":"https://api.github.com/repos/andela-cnwankwo/string-class/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-cnwankwo/string-class/downloads","issues_url":"https://api.github.com/repos/andela-cnwankwo/string-class/issues{/number}","pulls_url":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-cnwankwo/string-class/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-cnwankwo/string-class/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-cnwankwo/string-class/labels{/name}","releases_url":"https://api.github.com/repos/andela-cnwankwo/string-class/releases{/id}","deployments_url":"https://api.github.com/repos/andela-cnwankwo/string-class/deployments","created_at":"2016-11-15T09:45:31Z","updated_at":"2016-11-23T10:02:58Z","pushed_at":"2016-11-24T08:09:06Z","git_url":"git://github.com/andela-cnwankwo/string-class.git","ssh_url":"git@github.com:andela-cnwankwo/string-class.git","clone_url":"https://github.com/andela-cnwankwo/string-class.git","svn_url":"https://github.com/andela-cnwankwo/string-class","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1"},"html":{"href":"https://github.com/andela-cnwankwo/string-class/pull/1"},"issue":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/1"},"comments":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andela-cnwankwo/string-class/statuses/fb82d15b220d5dad33f9843670c6d346d045cb80"}}}}
{"actor":{"display_login":"andela-cnwankwo"}}