Skip to content

Instantly share code, notes, and snippets.

@sauntimo
Created August 29, 2017 15:49
Show Gist options
  • Save sauntimo/e32e9b34f493ba0dd7592a97b8e5dc60 to your computer and use it in GitHub Desktop.
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'
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