How to create custom pipe and use in DataTable or ngFor in Angular Given simple…