mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
latest fixes for search page
This commit is contained in:
10
src/app/shared/utils/object-keys-pipe.ts
Normal file
10
src/app/shared/utils/object-keys-pipe.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PipeTransform, Pipe } from '@angular/core';
|
||||
|
||||
@Pipe({name: 'dsObjectKeys'})
|
||||
export class ObjectKeysPipe implements PipeTransform {
|
||||
transform(value, args:string[]): any {
|
||||
const keys = [];
|
||||
Object.keys(value).forEach((k) => keys.push(k));
|
||||
return keys;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user