isSpace

Syntax

isSpace(X)

Arguments

X is a STRING scalar or vector.

Details

Check whether the string X consists of only space. Return "true" if all characters in X are space, "\t" (tab), "\r" (carriage return) or "\n" (newline escape).

Examples

isSpace("hello world");
// output
false

isSpace(" \t ");
// output
true

isSpace(string());
// output
false