v1.8.0
  • Solutions
    • Multiplatform Mobile
    • Multiplatform for other platforms
    • Server-side
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.collections / isEmpty

isEmpty

Common
JVM
JS
Native
1.0
fun <T> Array<out T>.isEmpty(): Boolean
(source)
fun ByteArray.isEmpty(): Boolean
(source)
fun ShortArray.isEmpty(): Boolean
(source)
fun IntArray.isEmpty(): Boolean
(source)
fun LongArray.isEmpty(): Boolean
(source)
fun FloatArray.isEmpty(): Boolean
(source)
fun DoubleArray.isEmpty(): Boolean
(source)
fun BooleanArray.isEmpty(): Boolean
(source)
fun CharArray.isEmpty(): Boolean
(source)

Returns true if the array is empty.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains