app/@overflow/commons/ui/pipe/object-keys.ts
2018-09-18 21:25:47 +09:00

9 lines
223 B
TypeScript

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