mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
0.2.5 initial commit
Makefile incomplete
This commit is contained in:
10
ui/src/app/pipes/includes.pipe.ts
Normal file
10
ui/src/app/pipes/includes.pipe.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user