kotlin-stdlib / kotlin.collections / toCharArray toCharArray Common JVM JS Native 1.0 fun Array < out Char > . toCharArray ( ) : CharArray (source) Returns an array of Char containing all of the elements of this generic array. Common JVM JS Native 1.0 fun Collection < Char > . toCharArray ( ) : CharArray (source) Returns an array of Char containing all of the elements of this collection.