Strings.isEmpty()
Syntax
function isEmpty(string: string): boolean
Checks if a string is empty.
Parameters | |
string
|
The string to check. |
Example
import { Strings } from 'potence';
Strings.isEmpty(''); // -> true
Strings.isEmpty(' '); // -> false
Strings.isEmpty('banana bread'); // -> false
Remarks
Compare Strings.isWhitespace()
.