kotlin-stdlib / kotlin.collections / ArrayDeque / toArray toArray Common JVM JS Native 1.0 fun <T> toArray(array: Array<T>): Array<T>(source) fun toArray(): Array<Any?>(source)