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

This comment has been minimized.

Copy link
Owner Author

@bradoyler bradoyler commented Dec 16, 2019

image

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