Utility Wrapper Pipe
Information
This is the third of three @Pipe() challenges. The goal of this series is to master pipes in Angular.
Pipes are a very powerful way to transform data in your template. The difference between calling a function and a pipe is that pure pipes are memoized. So, they won't be recalculated every change detection cycle if their inputs haven't changed.
Pipes are designed to be efficient and optimized for performance. They use change detection mechanisms to only recalculate the value if the input changes, to minimize unnecessary calculations and improve rendering performance.
By default, a pipe is pure. You should be aware that setting pure to false is prone to be inefficient, because it increases the amount of rerenders.
Statement
In this exercise, you want to access utils functions. Currently, you cannot access them directly from your template. The goal is to create a specific pipe for this utils file, where you will need to pass the name of the function you want to call and the needed arguments.
Constraints
- Must be strongly typed
