2018-09-12 02:53:28 +00:00
|
|
|
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
|
|
|
|
@Pipe({ name: 'objectKeys' })
|
|
|
|
export class ObjectKeys implements PipeTransform {
|
|
|
|
transform(value: any, args: any[] = null): any {
|
|
|
|
return Object.keys(value);
|
|
|
|
}
|
2018-09-18 12:25:47 +00:00
|
|
|
}
|