import { Product } from '../models/Product' ; export const brandPurePipe = ( products , brand ) : Product [ ] => { if ( ! brand ) return products ; return products . filter ( product => brand . includes ( product . brand ) ) ; } ;