mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* chore: update packages * start tunnel messaging * chore: standalone * pbpaste instead --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
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)
|
|
}
|
|
}
|