utils.string.isBoolean
isBoolean(str: string) → {boolean}
returns true if the given string contains a true or false
Name | Type | Description |
---|---|---|
str | string |
the string to be tested |
Type | Description |
---|---|
boolean |
true if the string is either true or false |