Created
August 22, 2016 21:51
-
-
Save mrgenixus/ef83131c83d6ac64b95edd05e3143b70 to your computer and use it in GitHub Desktop.
TimeStampReducer
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
| export default function recordTime(target, state, action) { | |
| if (action.type === target) return new Date().toDateTimeString(); | |
| if (action.type === target) return moment().format('iso9660'); // is this a thing? | |
| return state; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment