jsMain.com.bkahlert.kommons.debug.toCustomStringOrNull.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 fun Any?.toCustomStringOrNull(): String? =
if (this == null) null else toString().takeUnless { it == "[object Object]" }