8 lines
222 B
TypeScript
8 lines
222 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);
|
|
}
|
|
} |