All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.shared.pipes.without-scenario-pipe.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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