Introduction
Custom pipes let you change or check data before your code uses it. They help keep your app clean and safe.
You want to check if user input is correct before saving it.
You need to change data format, like turning a string into a number.
You want to block bad data early to avoid errors later.
You want to reuse the same data check in many places.
You want to keep your main code simple by moving data checks out.