SyntaxFix
Write A Post
Hire A Developer
Questions
Kotlin Devs, go with any / none
private fun compareCategory( categories: List<String>?, category: String ) = categories?.any { it.equals(category, true) } ?: false