Skip to content

Commit

Permalink
fix(ArrayFromObject): proper format for publishing 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Jun 23, 2018
1 parent b4b8c21 commit d111e07
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ import {Pipe, PipeTransform} from '@angular/core';
name: 'jpArrayFromObject'
})
export class ArrayFromObjectPipe implements PipeTransform {
static format(value: Object) {
return Object.entries(value).map(entry => ({
transform(value: Object): any {
return Object['entries'](value).map(entry => ({
key: entry[0],
value: entry[1]
}));
}

transform(value: Object): any {
return ArrayFromObjectPipe.format(value);
}
}

0 comments on commit d111e07

Please sign in to comment.