Created
March 27, 2018 08:51
-
-
Save funnythingz/8de93f917c2acdfbd6df7b3687016e02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ahya = function(startDate, endDate) { | |
var start = new Date(startDate); | |
var end = new Date(endDate); | |
var result = []; | |
for(var d = start, i = 0; d < end; d.setDate(d.getDate()+1), i++) { | |
result.push(new Date(d.getTime())); | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment