Comment Comment by icebraining Seems like you could just do var process = items => items.filter(isOk).map(toOtherType).flatten() parent icebraining 11 years ago