reduce

fun reduce(operation: (previousValue: T, currentValue: T, currentIndex: Int) -> T): T(source)
fun <U : ERROR CLASS: Symbol not found for JsAny??> reduce(operation: (previousValue: U, currentValue: T, currentIndex: Int) -> U, initialValue: U): U(source)

MDN Reference