### File

`src/app/shared/pipes/keys.pipe.ts`

    import { Pipe, PipeTransform } from '@angular/core';

    @Pipe({
      name: 'keys'
    })
    export class KeysPipe implements PipeTransform {

      transform(value: any, args?: string[]): any {
        const keys: any[] = [];
        for (const key in value) {
          if (value.hasOwnProperty(key)) {
            // keys.push(key);
            keys.push({key: key, value: value[key]});
         }
        }
        return keys;
      }
    }

# results matching ""

# No results matching ""