import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'pmKeys' } ) export class KeysPipe implements PipeTransform { public transform ( value ) { return Object . keys ( value || { } ) ; } }