diff options
Diffstat (limited to 'vid-webpack-master/src/app/shared/pipes/objectToArray/objectToArray.pipe.ts')
-rw-r--r-- | vid-webpack-master/src/app/shared/pipes/objectToArray/objectToArray.pipe.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/pipes/objectToArray/objectToArray.pipe.ts b/vid-webpack-master/src/app/shared/pipes/objectToArray/objectToArray.pipe.ts new file mode 100644 index 000000000..fa201d981 --- /dev/null +++ b/vid-webpack-master/src/app/shared/pipes/objectToArray/objectToArray.pipe.ts @@ -0,0 +1,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); + } +} |