Skip to content

Instantly share code, notes, and snippets.

@dylanjha
Last active November 2, 2017 23:11
Show Gist options
  • Save dylanjha/1d07f355636e15293df46c9db6781c5d to your computer and use it in GitHub Desktop.
Save dylanjha/1d07f355636e15293df46c9db6781c5d to your computer and use it in GitHub Desktop.
example file for issue
const obj = {}
function doSomething () {
return new Promise((resolve, reject) => {
obj.create({
name: 'Dylan',
username: 'dylan',
photo: 'avatarurl.com',
email: '[email protected]'
},
{ url: window.location.href })
.then(() => {})
})
}
doSomething()
function doSomething () {
return new Promise((resolve, reject) => {
return reject( // eslint-disable-line prefer-promise-reject-errors
'reject this thing'
)
})
}
doSomething()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment