/** Core */ import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'enumToArray' } ) export class EnumToArrayPipe implements PipeTransform { public transform ( value ) { const keys = Object . keys ( value ) ; return keys ; } }