src/app/shared/pipes/not-checked-list.pipe.ts
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'notCheckedList'})
export class NotCheckedListPipe implements PipeTransform {
transform(list: Array<any>, args?) {
if (!list || list.length === 0) {
return list;
}
return list.filter(factor => {
return !factor.checked;
});
}
}