kotlin-stdlib / kotlin / arrayOf arrayOf Common JVM 1.0 fun <reified T> arrayOf(vararg elements: T): Array<T>(source) JS Native 1.1 fun <T> arrayOf(vararg elements: T): Array<T>(JS source) (Native source) Returns an array containing the specified elements.