import { Pipe , PipeTransform } from '@angular/core' ; import type { NzSafeAny } from 'ng-zorro-antd/core/types' ; @ Pipe ( { name : 'filter' } ) export class FilterPipe implements PipeTransform { /**
     * Filter array
     *
     * 过滤数组
     */ transform < T > ( array , matcher , ... args ) { return array . filter ( i => matcher ( i , ... args ) ) ; } }