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

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