src.app.shared.pipes.without-scenario-pipe.ts Maven / Gradle / Ivy
import { Pipe, PipeTransform } from '@angular/core';
import { ScenarioIndex } from '@model';
@Pipe({
name: 'withoutScenario'
})
export class WithoutScenarioPipe implements PipeTransform {
transform(input: Array, scenarioToExclude: Array) {
return input.filter((item) => {
return !scenarioToExclude === undefined || !scenarioToExclude.includes(item);
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy