Created
August 29, 2017 15:49
-
-
Save sauntimo/e32e9b34f493ba0dd7592a97b8e5dc60 to your computer and use it in GitHub Desktop.
Simple function which returns a boolean to the question 'was Tim quoting something'
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
function wasTimQuotingSomething() { | |
return /day$/.test(new Date().toLocaleDateString('en-gb', { weekday: 'long' })); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment