fun <reified T> arrayOfNulls(size: Int): Array<T?>
(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.