jsMain.com.bkahlert.kommons.debug.plain.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kommons-debug Show documentation
Show all versions of kommons-debug Show documentation
Kommons Debug is a Kotlin Multiplatform Library for print debugging.
package com.bkahlert.kommons.debug
internal actual val Collection<*>.isPlain: Boolean
get() = this::class.js.name.let {
it.endsWith("HashSet") || it.endsWith("ArrayList")
} || keys.contains("length")
internal actual val Map<*, *>.isPlain: Boolean
get() = this::class.js.name.endsWith("HashMap") || keys.contains("length")