app/@overflow/commons/ui/pipe/object-keys.ts

8 lines
222 B
TypeScript
Raw Normal View History

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);
}
}