]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/angular/object-length.pipe.ts
Update CONTRIBUTING.md
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / angular / object-length.pipe.ts
1 import { Pipe, PipeTransform } from '@angular/core'
2
3 @Pipe({ name: 'myObjectLength' })
4 export class ObjectLengthPipe implements PipeTransform {
5 transform (value: Object) {
6 return Object.keys(value).length
7 }
8 }