flatMap

fun <R : ERROR CLASS: Symbol not found for JsAny??> flatMap(transform: (T) -> JsIterable<R>): JsIterator<R>(source)
fun <R : ERROR CLASS: Symbol not found for JsAny??> flatMap(transform: (T) -> ReadonlyArray<R>): JsIterator<R>(source)

MDN Reference