Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Object.getOwnPropertyNames(Date.prototype)
.filter(name => name.startsWith('to'))
.map(method => `${method}: ${(new Date())[method]()}`)
@bradoyler
Copy link
Author

bradoyler commented Dec 16, 2019

image

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