function reduce reduce<T>(iterable: Iterable<T>,accumulate: (accumulator: T,value: T) => T): T | undefined Type Parameters T Parameters iterable: Iterable<T> accumulate: (accumulator: T,value: T) => T Return Type T | undefined