mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add parameters
This commit is contained in:
@@ -7,13 +7,15 @@ export class FilterPipe implements PipeTransform {
|
||||
|
||||
transform(array: any[], text:string, column:string): any {
|
||||
|
||||
console.log(array, text, column);
|
||||
|
||||
if(text === ''){
|
||||
return array;
|
||||
}
|
||||
|
||||
text = text.toLowerCase();
|
||||
|
||||
if(Array.isArray(array)) {
|
||||
if(!Array.isArray(array)) {
|
||||
array = []
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user