added isBlank method, along with junit test and readme update

This commit is contained in:
Andy Deese
2017-05-19 09:18:15 -04:00
parent cf1d373442
commit 1877634234
7 changed files with 69 additions and 2 deletions
+13
View File
@@ -618,6 +618,19 @@ join(new String[]{"hello","world","123"}, ";")
// result => "hello;world;123")
```
## isBlank
isEmpty returns true if a string is blank or null and false otherwise.
```java
isBlank("")
// result => true)
isBlank(null)
// result => true)
isBlank("test")
// result => false)
```
## Inspiration
This library is inspired by [dleitee/strman](https://github.com/dleitee/strman).