Created
April 18, 2020 00:08
-
-
Save marshallmurphy/0bccf387d7ff38504c786bc06a104357 to your computer and use it in GitHub Desktop.
This file contains 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
generateValues = () => { | |
let days = []; | |
let nums = []; | |
Array(7).fill().forEach((i, index) => { | |
days.push(moment().subtract(index, 'days').format('ddd')); | |
nums.push(moment().subtract(index, 'days').format('D')); | |
}); | |
return { days: days.reverse(), nums: nums.reverse() } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment