Last active
September 25, 2017 18:41
-
-
Save rbren/f861fc666489cca4942015048e1be2b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api.getItem(1) | |
.then(item => { | |
delete item.owner; | |
console.log(item.owner.name); | |
}) | |
.catch(e => { | |
console.log(e); // Cannot read property 'name' of undefined | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment