{"action":"created","issue":{"url":"https://api.github.com/repos/gf3/moment-range/issues/68","repository_url":"https://api.github.com/repos/gf3/moment-range","labels_url":"https://api.github.com/repos/gf3/moment-range/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/gf3/moment-range/issues/68/comments","events_url":"https://api.github.com/repos/gf3/moment-range/issues/68/events","html_url":"https://github.com/gf3/moment-range/issues/68","id":63825168,"number":68,"title":"Can't iterate a range in reverse order","user":{"login":"EvNaverniouk","id":226640,"avatar_url":"https://avatars.githubusercontent.com/u/226640?v=3","gravatar_id":"","url":"https://api.github.com/users/EvNaverniouk","html_url":"https://github.com/EvNaverniouk","followers_url":"https://api.github.com/users/EvNaverniouk/followers","following_url":"https://api.github.com/users/EvNaverniouk/following{/other_user}","gists_url":"https://api.github.com/users/EvNaverniouk/gists{/gist_id}","starred_url":"https://api.github.com/users/EvNaverniouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvNaverniouk/subscriptions","organizations_url":"https://api.github.com/users/EvNaverniouk/orgs","repos_url":"https://api.github.com/users/EvNaverniouk/repos","events_url":"https://api.github.com/users/EvNaverniouk/events{/privacy}","received_events_url":"https://api.github.com/users/EvNaverniouk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gf3/moment-range/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"gf3","id":18397,"avatar_url":"https://avatars.githubusercontent.com/u/18397?v=3","gravatar_id":"","url":"https://api.github.com/users/gf3","html_url":"https://github.com/gf3","followers_url":"https://api.github.com/users/gf3/followers","following_url":"https://api.github.com/users/gf3/following{/other_user}","gists_url":"https://api.github.com/users/gf3/gists{/gist_id}","starred_url":"https://api.github.com/users/gf3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gf3/subscriptions","organizations_url":"https://api.github.com/users/gf3/orgs","repos_url":"https://api.github.com/users/gf3/repos","events_url":"https://api.github.com/users/gf3/events{/privacy}","received_events_url":"https://api.github.com/users/gf3/received_events","type":"User","site_admin":false},"assignees":[{"login":"gf3","id":18397,"avatar_url":"https://avatars.githubusercontent.com/u/18397?v=3","gravatar_id":"","url":"https://api.github.com/users/gf3","html_url":"https://github.com/gf3","followers_url":"https://api.github.com/users/gf3/followers","following_url":"https://api.github.com/users/gf3/following{/other_user}","gists_url":"https://api.github.com/users/gf3/gists{/gist_id}","starred_url":"https://api.github.com/users/gf3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gf3/subscriptions","organizations_url":"https://api.github.com/users/gf3/orgs","repos_url":"https://api.github.com/users/gf3/repos","events_url":"https://api.github.com/users/gf3/events{/privacy}","received_events_url":"https://api.github.com/users/gf3/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2015-03-23T20:32:13Z","updated_at":"2016-10-07T13:24:39Z","closed_at":null,"body":"I want to iterate over a date range from latest to earliest date, but this doesn't seem to work:\r\n\r\n```\r\nvar start = moment(\"2011-11-27\", \"YYYY-MM-DD\");\r\nvar end   = moment(\"2011-04-15\", \"YYYY-MM-DD\");\r\nvar range = moment().range(start, end);\r\nrange.by('days', function (day) {\r\n\t// Never get's called. :(\r\n\tconsole.log(day)\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/gf3/moment-range/issues/comments/252250987","html_url":"https://github.com/gf3/moment-range/issues/68#issuecomment-252250987","issue_url":"https://api.github.com/repos/gf3/moment-range/issues/68","id":252250987,"user":{"login":"yozef","id":287256,"avatar_url":"https://avatars.githubusercontent.com/u/287256?v=3","gravatar_id":"","url":"https://api.github.com/users/yozef","html_url":"https://github.com/yozef","followers_url":"https://api.github.com/users/yozef/followers","following_url":"https://api.github.com/users/yozef/following{/other_user}","gists_url":"https://api.github.com/users/yozef/gists{/gist_id}","starred_url":"https://api.github.com/users/yozef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozef/subscriptions","organizations_url":"https://api.github.com/users/yozef/orgs","repos_url":"https://api.github.com/users/yozef/repos","events_url":"https://api.github.com/users/yozef/events{/privacy}","received_events_url":"https://api.github.com/users/yozef/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T13:24:39Z","updated_at":"2016-10-07T13:24:39Z","body":"+1\r\nMaybe we can add an additional parameter \r\n~~~\r\nrange1.by('d', function (moment) {\r\n  acc.push(moment)\r\n}, true, false); // false is the order in reverse, true would be searching forward.\r\n~~~"}}
{"actor":{"display_login":"yozef"}}