arrayOfNulls

Common
JVM
1.0
fun <reified T> arrayOfNulls(size: Int): Array<T?>
(source)
JS
Native
1.1
fun <T> arrayOfNulls(size: Int): Array<T?>
(JS source) (Native source)
For Common, JVM, Native

Returns an array of objects of the given type with the given size, initialized with null values.

Exceptions

RuntimeException - if the specified size is negative.

For JS

Returns an array of objects of the given type with the given size, initialized with null values.