summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/pipes/objectToArray/objectToArray.pipe.ts
blob: fa201d981e123ad8b9313adcd615945385dd123a (plain)
1
2
3
4
5
6
7
8
import { PipeTransform, Pipe } from '@angular/core';
import * as _ from 'lodash';
@Pipe({name: 'objecttoarray'})
export class ObjectToArrayPipe implements PipeTransform {
  transform(obj) : any {
    return _.values(obj);
  }
}