mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
chore: update packages (#3132)
* chore: update packages * start tunnel messaging * chore: standalone * pbpaste instead --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
11
web/projects/shared/src/pipes/empty.pipe.ts
Normal file
11
web/projects/shared/src/pipes/empty.pipe.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core'
|
||||
import { isEmptyObject } from '../util/misc.util'
|
||||
|
||||
@Pipe({
|
||||
name: 'empty',
|
||||
})
|
||||
export class EmptyPipe implements PipeTransform {
|
||||
transform(val: object | [] = {}): boolean {
|
||||
return Array.isArray(val) ? !val.length : isEmptyObject(val)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user