Instantly share code, notes, and snippets.

Embed
What would you like to do?
hello world AOP example
class BookCollection {
...
getByISBN(isbn) {
return this.get({
isbn: isbn
}).then(book => book.name)
.catch(error => null);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment