hasSurrogatePairAt
Returns true if this CharSequence has Unicode surrogate pair at the specified index.
fun CharSequence.hasSurrogatePairAt(index: Int): Boolean(source)
val emoji = "👍" // U+1F44D is represented by a surrogate pair
val index = 0 // first code unit of the string
println(emoji.hasSurrogatePairAt(index)) // prints: true