from

fun <T> from(source: JsIterator<T>): ReadonlyArray<T>(source)
fun <T> from(source: JsIterable<T>): ReadonlyArray<T>(source)
fun <T> from(source: ArrayLike<T>): ReadonlyArray<T>(source)
fun <T, U> from(source: JsIterator<T>, transform: (item: T, index: Int) -> U): ReadonlyArray<U>(source)
fun <T, U> from(source: JsIterable<T>, transform: (item: T, index: Int) -> U): ReadonlyArray<U>(source)
fun <T, U> from(source: ArrayLike<T>, transform: (item: T, index: Int) -> U): ReadonlyArray<U>(source)