Skip to content

Instantly share code, notes, and snippets.

View s-o-r-o-u-s-h's full-sized avatar

Soroush Gholam Zadeh s-o-r-o-u-s-h

View GitHub Profile
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
//datatable.pipe.ts
import {Pipe} from "angular2/core";
@Pipe({name: "iterateObject", pure: false})
export class IterateObjectPipe {
transform(value:any, args:string[] = null):any {
return Object.keys(value).map(key => value[key]);
}
}