mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core'
|
|
|
|
@Pipe({
|
|
name: 'includes',
|
|
})
|
|
export class IncludesPipe implements PipeTransform {
|
|
transform<T> (set: T[], val: T): boolean {
|
|
return set.includes(val)
|
|
}
|
|
} |