Created
June 14, 2017 16:20
-
-
Save kyuwoo-choi/3f3b961eb2df817e64b9a3ecd8ea57da to your computer and use it in GitHub Desktop.
hello world AOP no need?
This file contains 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
let originalFunction = Collection.prototype.getNameByISBN; | |
Collection.prototype.getNameByISBN = function () { | |
let result = originalFunction.apply(this, arguments); | |
Logger.info(`Retrieving ${result.isbn} - ${result.name} has been succeed`); | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment