Add a sample reference to isBlank

This commit is contained in:
Ilya Gorbunov
2019-03-12 21:14:05 +03:00
committed by Nikolay Igotti
parent b093b4b83e
commit 5d08060c89
@@ -92,6 +92,8 @@ public actual fun String.decapitalize(): String {
/**
* Returns `true` if this string is empty or consists solely of whitespace characters.
*
* @sample samples.text.Strings.stringIsBlank
*/
public actual fun CharSequence.isBlank(): Boolean = length == 0 || indices.all { this[it].isWhitespace() }