Companion

Functions

Link copied to clipboard
fun <T> from(source: ArrayLike<T>): ReadonlyArray<T>
fun <T> from(source: JsIterable<T>): ReadonlyArray<T>
fun <T> from(source: JsIterator<T>): ReadonlyArray<T>
fun <T, U> from(source: ArrayLike<T>, transform: (item: T, index: Int) -> U): ReadonlyArray<U>
fun <T, U> from(source: JsIterable<T>, transform: (item: T, index: Int) -> U): ReadonlyArray<U>
fun <T, U> from(source: JsIterator<T>, transform: (item: T, index: Int) -> U): ReadonlyArray<U>
Link copied to clipboard
fun <T, U> fromAsync(source: AsyncIterable<T>, transform: (item: T, index: Int) -> U): Promise<ReadonlyArray<U>>
fun <T, U> fromAsync(source: JsIterable<PromiseResult<T>>, transform: (item: T, index: Int) -> U): Promise<ReadonlyArray<U>>
fun <T, U> fromAsync(source: ReadonlyArray<PromiseResult<T>>, transform: (item: T, index: Int) -> U): Promise<ReadonlyArray<U>>