Skip to content

Instantly share code, notes, and snippets.

@dylanjha dylanjha/example-1.js
Last active Nov 2, 2017

Embed
What would you like to do?
example file for issue
const obj = {}
function doSomething () {
return new Promise((resolve, reject) => {
obj.create({
name: 'Dylan',
username: 'dylan',
photo: 'avatarurl.com',
email: 'dylan@myemail.com'
},
{ 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
You can’t perform that action at this time.