blob: 2a58cd8619424cae8aee56d0bee389a155ae5717 [file] [log] [blame]
Israel Lavi1994c982018-05-21 17:42:00 +03001import { Pipe, PipeTransform } from '@angular/core';
2
3@Pipe({name: 'keys'})
4export class KeysPipe implements PipeTransform {
5 transform(value, args:string[]) : any {
6 let keys = [];
7 for (let key in value) {
8 keys.push(key);
9 }
10 return keys;
11 }
12}
13