W3cubDocs

/Kotlin

isEmpty

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
fun <T> Array<out T>.isEmpty(): Boolean
fun ByteArray.isEmpty(): Boolean
fun ShortArray.isEmpty(): Boolean
fun IntArray.isEmpty(): Boolean
fun LongArray.isEmpty(): Boolean
fun FloatArray.isEmpty(): Boolean
fun DoubleArray.isEmpty(): Boolean
fun BooleanArray.isEmpty(): Boolean
fun CharArray.isEmpty(): Boolean

Returns true if the array is empty.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/is-empty.html