Skip to content

Instantly share code, notes, and snippets.

@bradoyler
Created December 16, 2019 21:32
Show Gist options
  • Save bradoyler/3dc3a65b80e605e99dfc03b6f39dd809 to your computer and use it in GitHub Desktop.
Save bradoyler/3dc3a65b80e605e99dfc03b6f39dd809 to your computer and use it in GitHub Desktop.
Object.getOwnPropertyNames(Date.prototype)
.filter(name => name.startsWith('to'))
.map(method => `${method}: ${(new Date())[method]()}`)
@bradoyler
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment