{"action":"created","comment":{"url":"https://api.github.com/repos/Yomguithereal/baobab/pulls/comments/44288452","id":44288452,"diff_hunk":"@@ -386,6 +386,38 @@ export default class Cursor extends Emitter {\n   }\n \n   /**\n+   * Method used to allow iterating over cursors containing list-type data.\n+   *\n+   * e.g. for(let i of cursor) { ... }\n+   *\n+   * @returns {Object}        -  Each item sequentially\n+   */\n+  [Symbol.iterator](){\n+    let array = this._get().data;\n+\n+    if (!type.array(array))\n+      throw Error('baobab.Cursor.@@iterate: cannot iterate a non-list type.');\n+\n+    let i = 0;\n+    const cursor = this;\n+    const length = array.length;\n+\n+    return {\n+      next: function(){\n+        if(i < length){\n+          return {\n+            value: cursor.select(i++)\n+          };\n+        } else {","path":"src/cursor.js","position":26,"original_position":26,"commit_id":"95c59d6fe43e209d4f143d3c5acd7997e7216e86","original_commit_id":"95c59d6fe43e209d4f143d3c5acd7997e7216e86","user":{"login":"Yomguithereal","id":2571951,"avatar_url":"https://avatars.githubusercontent.com/u/2571951?v=3","gravatar_id":"","url":"https://api.github.com/users/Yomguithereal","html_url":"https://github.com/Yomguithereal","followers_url":"https://api.github.com/users/Yomguithereal/followers","following_url":"https://api.github.com/users/Yomguithereal/following{/other_user}","gists_url":"https://api.github.com/users/Yomguithereal/gists{/gist_id}","starred_url":"https://api.github.com/users/Yomguithereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yomguithereal/subscriptions","organizations_url":"https://api.github.com/users/Yomguithereal/orgs","repos_url":"https://api.github.com/users/Yomguithereal/repos","events_url":"https://api.github.com/users/Yomguithereal/events{/privacy}","received_events_url":"https://api.github.com/users/Yomguithereal/received_events","type":"User","site_admin":false},"body":"Can you write the `else` on a new line?","created_at":"2015-11-09T15:38:31Z","updated_at":"2015-11-09T15:38:31Z","html_url":"https://github.com/Yomguithereal/baobab/pull/386#discussion_r44288452","pull_request_url":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386","_links":{"self":{"href":"https://api.github.com/repos/Yomguithereal/baobab/pulls/comments/44288452"},"html":{"href":"https://github.com/Yomguithereal/baobab/pull/386#discussion_r44288452"},"pull_request":{"href":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386"}}},"pull_request":{"url":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386","id":50043410,"html_url":"https://github.com/Yomguithereal/baobab/pull/386","diff_url":"https://github.com/Yomguithereal/baobab/pull/386.diff","patch_url":"https://github.com/Yomguithereal/baobab/pull/386.patch","issue_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/386","number":386,"state":"open","locked":false,"title":"Make cursors iterable","user":{"login":"kirjs","id":2545357,"avatar_url":"https://avatars.githubusercontent.com/u/2545357?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjs","html_url":"https://github.com/kirjs","followers_url":"https://api.github.com/users/kirjs/followers","following_url":"https://api.github.com/users/kirjs/following{/other_user}","gists_url":"https://api.github.com/users/kirjs/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjs/subscriptions","organizations_url":"https://api.github.com/users/kirjs/orgs","repos_url":"https://api.github.com/users/kirjs/repos","events_url":"https://api.github.com/users/kirjs/events{/privacy}","received_events_url":"https://api.github.com/users/kirjs/received_events","type":"User","site_admin":false},"body":"This would allow using baobab collections in Angular 2 templates. ","created_at":"2015-11-07T19:33:51Z","updated_at":"2015-11-09T15:38:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4959e3dc7032b640ad3a7cc92756971ddc1b8544","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386/commits","review_comments_url":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386/comments","review_comment_url":"https://api.github.com/repos/Yomguithereal/baobab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/386/comments","statuses_url":"https://api.github.com/repos/Yomguithereal/baobab/statuses/95c59d6fe43e209d4f143d3c5acd7997e7216e86","head":{"label":"kirjs:master","ref":"master","sha":"95c59d6fe43e209d4f143d3c5acd7997e7216e86","user":{"login":"kirjs","id":2545357,"avatar_url":"https://avatars.githubusercontent.com/u/2545357?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjs","html_url":"https://github.com/kirjs","followers_url":"https://api.github.com/users/kirjs/followers","following_url":"https://api.github.com/users/kirjs/following{/other_user}","gists_url":"https://api.github.com/users/kirjs/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjs/subscriptions","organizations_url":"https://api.github.com/users/kirjs/orgs","repos_url":"https://api.github.com/users/kirjs/repos","events_url":"https://api.github.com/users/kirjs/events{/privacy}","received_events_url":"https://api.github.com/users/kirjs/received_events","type":"User","site_admin":false},"repo":{"id":45745587,"name":"baobab","full_name":"kirjs/baobab","owner":{"login":"kirjs","id":2545357,"avatar_url":"https://avatars.githubusercontent.com/u/2545357?v=3","gravatar_id":"","url":"https://api.github.com/users/kirjs","html_url":"https://github.com/kirjs","followers_url":"https://api.github.com/users/kirjs/followers","following_url":"https://api.github.com/users/kirjs/following{/other_user}","gists_url":"https://api.github.com/users/kirjs/gists{/gist_id}","starred_url":"https://api.github.com/users/kirjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirjs/subscriptions","organizations_url":"https://api.github.com/users/kirjs/orgs","repos_url":"https://api.github.com/users/kirjs/repos","events_url":"https://api.github.com/users/kirjs/events{/privacy}","received_events_url":"https://api.github.com/users/kirjs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirjs/baobab","description":"JavaScript persistent and optionally immutable data tree with cursors.","fork":true,"url":"https://api.github.com/repos/kirjs/baobab","forks_url":"https://api.github.com/repos/kirjs/baobab/forks","keys_url":"https://api.github.com/repos/kirjs/baobab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirjs/baobab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirjs/baobab/teams","hooks_url":"https://api.github.com/repos/kirjs/baobab/hooks","issue_events_url":"https://api.github.com/repos/kirjs/baobab/issues/events{/number}","events_url":"https://api.github.com/repos/kirjs/baobab/events","assignees_url":"https://api.github.com/repos/kirjs/baobab/assignees{/user}","branches_url":"https://api.github.com/repos/kirjs/baobab/branches{/branch}","tags_url":"https://api.github.com/repos/kirjs/baobab/tags","blobs_url":"https://api.github.com/repos/kirjs/baobab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirjs/baobab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirjs/baobab/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirjs/baobab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirjs/baobab/statuses/{sha}","languages_url":"https://api.github.com/repos/kirjs/baobab/languages","stargazers_url":"https://api.github.com/repos/kirjs/baobab/stargazers","contributors_url":"https://api.github.com/repos/kirjs/baobab/contributors","subscribers_url":"https://api.github.com/repos/kirjs/baobab/subscribers","subscription_url":"https://api.github.com/repos/kirjs/baobab/subscription","commits_url":"https://api.github.com/repos/kirjs/baobab/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirjs/baobab/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirjs/baobab/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirjs/baobab/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirjs/baobab/contents/{+path}","compare_url":"https://api.github.com/repos/kirjs/baobab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirjs/baobab/merges","archive_url":"https://api.github.com/repos/kirjs/baobab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirjs/baobab/downloads","issues_url":"https://api.github.com/repos/kirjs/baobab/issues{/number}","pulls_url":"https://api.github.com/repos/kirjs/baobab/pulls{/number}","milestones_url":"https://api.github.com/repos/kirjs/baobab/milestones{/number}","notifications_url":"https://api.github.com/repos/kirjs/baobab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirjs/baobab/labels{/name}","releases_url":"https://api.github.com/repos/kirjs/baobab/releases{/id}","created_at":"2015-11-07T17:01:54Z","updated_at":"2015-11-07T17:01:57Z","pushed_at":"2015-11-09T14:54:02Z","git_url":"git://github.com/kirjs/baobab.git","ssh_url":"git@github.com:kirjs/baobab.git","clone_url":"https://github.com/kirjs/baobab.git","svn_url":"https://github.com/kirjs/baobab","homepage":"","size":2533,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Yomguithereal:master","ref":"master","sha":"ea56cf401531510ac55d2dcc2846e99730493d19","user":{"login":"Yomguithereal","id":2571951,"avatar_url":"https://avatars.githubusercontent.com/u/2571951?v=3","gravatar_id":"","url":"https://api.github.com/users/Yomguithereal","html_url":"https://github.com/Yomguithereal","followers_url":"https://api.github.com/users/Yomguithereal/followers","following_url":"https://api.github.com/users/Yomguithereal/following{/other_user}","gists_url":"https://api.github.com/users/Yomguithereal/gists{/gist_id}","starred_url":"https://api.github.com/users/Yomguithereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yomguithereal/subscriptions","organizations_url":"https://api.github.com/users/Yomguithereal/orgs","repos_url":"https://api.github.com/users/Yomguithereal/repos","events_url":"https://api.github.com/users/Yomguithereal/events{/privacy}","received_events_url":"https://api.github.com/users/Yomguithereal/received_events","type":"User","site_admin":false},"repo":{"id":27480700,"name":"baobab","full_name":"Yomguithereal/baobab","owner":{"login":"Yomguithereal","id":2571951,"avatar_url":"https://avatars.githubusercontent.com/u/2571951?v=3","gravatar_id":"","url":"https://api.github.com/users/Yomguithereal","html_url":"https://github.com/Yomguithereal","followers_url":"https://api.github.com/users/Yomguithereal/followers","following_url":"https://api.github.com/users/Yomguithereal/following{/other_user}","gists_url":"https://api.github.com/users/Yomguithereal/gists{/gist_id}","starred_url":"https://api.github.com/users/Yomguithereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yomguithereal/subscriptions","organizations_url":"https://api.github.com/users/Yomguithereal/orgs","repos_url":"https://api.github.com/users/Yomguithereal/repos","events_url":"https://api.github.com/users/Yomguithereal/events{/privacy}","received_events_url":"https://api.github.com/users/Yomguithereal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yomguithereal/baobab","description":"JavaScript persistent and optionally immutable data tree with cursors.","fork":false,"url":"https://api.github.com/repos/Yomguithereal/baobab","forks_url":"https://api.github.com/repos/Yomguithereal/baobab/forks","keys_url":"https://api.github.com/repos/Yomguithereal/baobab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yomguithereal/baobab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yomguithereal/baobab/teams","hooks_url":"https://api.github.com/repos/Yomguithereal/baobab/hooks","issue_events_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/events{/number}","events_url":"https://api.github.com/repos/Yomguithereal/baobab/events","assignees_url":"https://api.github.com/repos/Yomguithereal/baobab/assignees{/user}","branches_url":"https://api.github.com/repos/Yomguithereal/baobab/branches{/branch}","tags_url":"https://api.github.com/repos/Yomguithereal/baobab/tags","blobs_url":"https://api.github.com/repos/Yomguithereal/baobab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yomguithereal/baobab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yomguithereal/baobab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yomguithereal/baobab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yomguithereal/baobab/statuses/{sha}","languages_url":"https://api.github.com/repos/Yomguithereal/baobab/languages","stargazers_url":"https://api.github.com/repos/Yomguithereal/baobab/stargazers","contributors_url":"https://api.github.com/repos/Yomguithereal/baobab/contributors","subscribers_url":"https://api.github.com/repos/Yomguithereal/baobab/subscribers","subscription_url":"https://api.github.com/repos/Yomguithereal/baobab/subscription","commits_url":"https://api.github.com/repos/Yomguithereal/baobab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yomguithereal/baobab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yomguithereal/baobab/contents/{+path}","compare_url":"https://api.github.com/repos/Yomguithereal/baobab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yomguithereal/baobab/merges","archive_url":"https://api.github.com/repos/Yomguithereal/baobab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yomguithereal/baobab/downloads","issues_url":"https://api.github.com/repos/Yomguithereal/baobab/issues{/number}","pulls_url":"https://api.github.com/repos/Yomguithereal/baobab/pulls{/number}","milestones_url":"https://api.github.com/repos/Yomguithereal/baobab/milestones{/number}","notifications_url":"https://api.github.com/repos/Yomguithereal/baobab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yomguithereal/baobab/labels{/name}","releases_url":"https://api.github.com/repos/Yomguithereal/baobab/releases{/id}","created_at":"2014-12-03T10:00:42Z","updated_at":"2015-11-09T14:06:32Z","pushed_at":"2015-11-09T15:27:05Z","git_url":"git://github.com/Yomguithereal/baobab.git","ssh_url":"git@github.com:Yomguithereal/baobab.git","clone_url":"https://github.com/Yomguithereal/baobab.git","svn_url":"https://github.com/Yomguithereal/baobab","homepage":"","size":2533,"stargazers_count":1592,"watchers_count":1592,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":27,"forks":54,"open_issues":27,"watchers":1592,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386"},"html":{"href":"https://github.com/Yomguithereal/baobab/pull/386"},"issue":{"href":"https://api.github.com/repos/Yomguithereal/baobab/issues/386"},"comments":{"href":"https://api.github.com/repos/Yomguithereal/baobab/issues/386/comments"},"review_comments":{"href":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386/comments"},"review_comment":{"href":"https://api.github.com/repos/Yomguithereal/baobab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yomguithereal/baobab/pulls/386/commits"},"statuses":{"href":"https://api.github.com/repos/Yomguithereal/baobab/statuses/95c59d6fe43e209d4f143d3c5acd7997e7216e86"}}}}