判断字符串是否为空白符
- Source:
Example
str.isBlank('') // true
str.isBlank(' ') // true
str.isBlank('\n') // true
str.isBlank(null) // true
str.isBlank(undefined) // true
Parameters:
Name | Type | Description |
---|---|---|
str |
String | 字符串 |
Returns:
true,表示str是空白符;false,表示str不是空白符
- Type
- Boolean