Advice Function
This is a basic implementation of Advice pattern for functional programing.
Before and After
Both functions called with the same arguments of the main functions. These functions don`t change the value of arguments or result value of main function.
Example
// hello worldconst greeting = patternconst hello =
Arround
This decorator is the best of decorators, because we can use to multiple porpuse (replace arguments, call to another methods after and before to call main function, ....)
If You don´t set any function to Arround list, main function is called.
Example
// hello worldconst greeting = patternconst hello =
License
currency-format is licensed under the MIT License.