Skip to content

Instantly share code, notes, and snippets.

@benfoxall
Created September 6, 2017 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benfoxall/d33f9a508fdde419a2badbbb7497a7d3 to your computer and use it in GitHub Desktop.
Save benfoxall/d33f9a508fdde419a2badbbb7497a7d3 to your computer and use it in GitHub Desktop.
let delayed = new Promise(r => setTimeout(r, 500, 'hello'))
let element = Object.assign(
document.createElement('div'),
{textContent: 'hello'}
)
Object.assign(element.style, {
background: 'red'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment