I'm an error that Type 'Function' provides no match for the signature for the filter below. Which is true because filter expects a specific type. How would define my callback to match what filter expects?
private _getItemFilteredBy(itemName: string, Fn: Function): Observable<any[]> {
return this.getItemByName(itemName)
.map((items: any[]) => {
return items.filter( Fn );
});
}