ifBlank<S extends string> method

S ifBlank<S extends string>(
  1. S newString
)

Return this if not blank. Otherwise return newString.

Implementation

S ifBlank<S extends string>(S newString) => asIf((s) => (s ?? "").isNotBlank, this, newString) as S;