Skip to content

Instantly share code, notes, and snippets.

View NikCapko's full-sized avatar
🏠
Working from home

Nikolay Capko NikCapko

🏠
Working from home
View GitHub Profile
@akshaykalola28
akshaykalola28 / IfNullExtension.kt
Created March 2, 2023 06:57
Extension function for Run block ifNull
fun Any?.ifNull(block: () -> Unit) = run {
if (this == null) {
block()
}
}
@akshaykalola28
akshaykalola28 / IsNullExtension.kt
Created March 2, 2023 06:51
isNull Extenstion for Android developer
val Any?.isNull get() = this == null