Created
January 11, 2017 16:21
-
-
Save kognate/8401cdc9cafae6a53910c5dbf6b9597b 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
let isInRange = function(date) { | |
return moment().subtract(60,'d') < date && moment().add(1,'m') > date; | |
} | |
let isOutOfRange = function(date) { | |
return !isInRange(date); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment