import { Pipe , PipeTransform } from '@angular/core' ; import type { NzSafeAny } from 'ng-zorro-antd/core/types' ; /**
 * [Document](https://ng-alain.com/theme/keys)
 */ @ Pipe ( { name : 'keys' } ) export class KeysPipe implements PipeTransform { transform ( value , keyIsNumber = false ) { const ret = [ ] ; Object . keys ( value ) . forEach ( key => { ret . push ( { key : keyIsNumber ? + key : key , value : value [ key ] } ) ; } ) ; return ret ; } }