Checks if a string is (null), empty or contains whitespaces only.

// (true) StringFormat.isNullOrWhitespace(null); StringFormat.isNullOrWhitespace(" "); StringFormat.isNullOrWhitespace(""); // (false) StringFormat.isNullOrWhitespace("0"); StringFormat.isNullOrWhitespace("null"); StringFormat.isNullOrWhitespace("undefined"); StringFormat.isNullOrWhitespace("empty"); StringFormat.isNullOrWhitespace("whitespace"); StringFormat.isNullOrWhitespace(undefined);